On 19.03.2010, at 20:19, Albrecht Schlosser wrote: > Hi All, > > FLTK 1.3 defines the two macros in the subject line when compiling. > > I've just read "man 7 feature_test_macros" ...
--snip-- > Should we maybe change the defined macros? If yes, define > only _FILE_OFFSET_BITS=64 and drop the others, or do we > need them for compatibility with older systems? > > Does anybody know more about this? Thanks to all who replied, I learned much about getconf, sysconf, and some more about POSIX standards etc. by reading the mentioned and other docs ;-) The STR mentioned by Greg was a helpful resource. I also found out that FLTK 1.3 configure deliberately adds the "-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" compiler macros, if large file support is requested (default in FLTK 1.3), but it would additionally use -D_LARGE_FILES and -D_FILE_OFFSET_BITS=64 if this would be needed, as found out by configure (AC_SYS_LARGEFILE). Thus, my question is almost obsolete - we could only go and drop the two deliberately added compiler macros, but IMHO they will do no harm and perhaps really needed by older systems. Thanks, and sorry for the noise ;-) Albrecht _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
