[Zlib-devel] ABI change in zlib 1.2.4
William A. Rowe Jr.
wrowe at rowe-clan.net
Sun Apr 4 17:27:14 EDT 2010
On 4/4/2010 2:50 AM, Mark Adler wrote:
> On Apr 2, 2010, at 4:55 PM, William A. Rowe Jr. wrote:
>> The only issue I find is the z_off64_t change which is missing from zconf.h.
>
>
> Please expand on the meaning of that statement. Thanks.
There is an assortment of prototypes and args for the gzfoo64() function family.
Instead of multiple declarations, one declaration of the function prototypes with
an assortment of z_off64_t types would be worthwhile.
The discrepancy between zutil.h and zlib.h definitions should be a red herring
that the user is set to blow up on one configuration or another.
z_off_t resolved this nicely for the classic zlib.h/zconf.h prototypes. The same
is needed for z_off64_t. The situation with off64_t's is about as varied as back
in the bad old days of settling on an off_t.
On win32 at least, this type is portably __int64_t; moving this type into zconf.h,
respecting the current largefile mode and working out the right z_off64_t seems
like the way to go?
More information about the Zlib-devel
mailing list