From 63420dd95686abbacc30e4ec1a2082235ca05728 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 5 Oct 2017 18:32:52 +0000 Subject: Fix name clash with zlib gzopen on (64-bit) Linux. Compilation error message: src/Fl_SVG_Image.cxx:80:21: error: out-of-line definition of 'gzopen64' does not match any declaration in 'Fl_SVG_Image'; did you mean 'gzopen'? void* Fl_SVG_Image::gzopen(const char *fname) { ^~~~~~ gzopen /usr/include/zlib.h:1709:20: note: expanded from macro 'gzopen' # define gzopen gzopen64 ^ The culprit was the macro defined in zlib.h (above). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_SVG_Image.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl_SVG_Image.H b/FL/Fl_SVG_Image.H index a8258b20a..a4d873aa7 100644 --- a/FL/Fl_SVG_Image.H +++ b/FL/Fl_SVG_Image.H @@ -74,7 +74,7 @@ public: virtual void color_average(Fl_Color c, float i); virtual void draw(int X, int Y, int W, int H, int cx = 0, int cy = 0); void draw(int X, int Y) { draw(X, Y, w(), h(), 0, 0); } - static void* gzopen(const char *fname); + static void* fl_gzopen(const char *fname); }; #endif // FL_SVG_IMAGE_H -- cgit v1.2.3