diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-05 18:32:52 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-05 18:32:52 +0000 |
| commit | 63420dd95686abbacc30e4ec1a2082235ca05728 (patch) | |
| tree | fd74ccdff7b889aec323596c296e160e4ebadc30 /src/fl_images_core.cxx | |
| parent | 0cec3f7e9d7fe5a3838bc6985f49ad855ef5426d (diff) | |
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
Diffstat (limited to 'src/fl_images_core.cxx')
| -rw-r--r-- | src/fl_images_core.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fl_images_core.cxx b/src/fl_images_core.cxx index 3ed225c8c..b44fd6b23 100644 --- a/src/fl_images_core.cxx +++ b/src/fl_images_core.cxx @@ -94,7 +94,7 @@ fl_check_images(const char *name, // I - Filename #ifdef FLTK_USE_NANOSVG # if defined(HAVE_LIBZ) if (header[0] == 0x1f && header[1] == 0x8b) { // denotes gzip'ed data - gzFile gzf = (gzFile)Fl_SVG_Image::gzopen(name); + gzFile gzf = (gzFile)Fl_SVG_Image::fl_gzopen(name); if (gzf) { gzread(gzf, header, headerlen); gzclose(gzf); |
