Compilation fixes for ancient GCC
|Reported by:||Even Rouault||Owned by:||Even Rouault|
Several small issues discovered while trying to compile against gcc-2.96-110 of RedHat 7.3... :
- _GNU_SOURCE should be defined before including dlfcn.h to use RTLD_DEFAULT (fixes compilation of geotiff.cpp)
- When VSI_NEED_LARGEFILE64_SOURCE is defined, cpl_port.h should be included before any standard headers, so we have a chance to define _LARGEFILE64_SOURCE so that VSIStatBufL gets defined (fixes compilation of ogrvrtdriver.cpp and dec_jpeg2000.cpp)
- That g++ version doesn't like static methods with same name, but with different arguments, as found in the NITF driver with the Open() method.
Change History (2)
Note: See TracTickets for help on using tickets.