Greg Ercolano schrieb:
> Albrecht Schlosser wrote:
>> 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?
found this usefull:
#define _FILE_OFFSET_BITS 64
#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE
#endif
_FILE_OFFSET_BITS does the magic like maps off_t to 64 bit.
_LARGEFILE_SOURCE should be neccessary on some hosts to see fseeko ...
ftello and fseeko have the correct declarations for off_t
imho _LARGEFILE64_SOURCE is not needed until you need lseek64 etc
here i get (32bit os):
$ getconf LFS_CFLAGS
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
64bit os returns nothing.
btw. printing size_t and off_t is still not portable
printf("size=%zu offset=%16jx"\n",size_t_var,off_t_var);
Gombok
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev