Hi All,
FLTK 1.3 defines the two macros in the subject line when compiling.
I've just read "man 7 feature_test_macros" on my Ubuntu 9.04 system,
and found this:
--- begin ---
_LARGEFILE64_SOURCE
Expose definitions for the alternative API speci-
fied by the LFS (Large File Summit) as a "transi-
tional extension" to the Single UNIX Specifica-
tion. (See http://opengroup.org/plat-
form/lfs.html.) The alternative API consists of a
set of new objects (i.e., functions and types)
whose names are suffixed with "64" (e.g., off64_t
versus off_t, lseek64() versus lseek(), etc.).
[>>> New programs should not employ this interface;
[>>> instead _FILE_OFFSET_BITS=64 should be employed.
_FILE_OFFSET_BITS
Defining this macro with the value 64 automati-
cally converts references to 32-bit functions and
data types related to file I/O and file system
operations into references to their 64-bit coun-
terparts. This is useful for performing I/O on
large files (> 2 Gigabytes) on 32-bit systems.
(Defining this macro permits correctly written
programs to use large files with only a recompila-
tion being required.) 64-bit systems naturally
permit file sizes greater than 2 Gigabytes, and on
those systems this macro has no effect.
--- end ---
_LARGEFILE_SOURCE is not mentioned in this document.
Please see especially text marked with "[>>>".
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?
Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev