[Zlib-devel] zlib 1.2.3.2 available for testing
Mark Adler
madler at alumni.caltech.edu
Tue Sep 5 16:44:24 EDT 2006
On Sep 5, 2006, at 1:21 PM, Lasse Collin wrote:
> With zlib 1.2.3.2, this code doesn't compile without
> _LARGEFILE64_SOURCE:
I guess it would be uncouth to #define _LARGEFILE64_SOURCE in
zlibdefs.h.
So if I use -D_FILE_OFFSET_BITS=64, then the code I compile with
doesn't have to? Won't there then be type mismatches with routines
that use off_t? It seems to me that if I'm changing the meaning of
off_t, I'm in exactly as dangerous a situation, if not worse, as I
would be in defining _LARGEFILE64_SOURCE which only changes the
meaning of z_off_t.
Maybe zlib shouldn't bother with any of this at all, and just leave
it to the user to force off_t to the right type.
mark
More information about the Zlib-devel
mailing list