[Zlib-devel] zlib 1.2.0.1 available for testing
Gilles Vollant
info at winimage.com
Sat Mar 22 18:45:01 EST 2003
<<
Another cause for trouble is WINAPI. Not even Microsoft is using WINAPI
in their C RTL, but only in "pure" Win32 functions. Please, please
change it to CDECL! Otherwise, whoever wants to write *portable*
programs that use zlib, has to decorate all the callbacks using ZEXPORT,
and unixers surely won't like this.
>>
Pehaps, but the actual zlib.dll use WINAPI function. So future zlib.dll
must also use WINAPI function, we will not broke compatibility.
Using your fileset and my project, we build an incompatible zlib.dll
that uses CDECL.
There is another question for contrib/minizip : with your source, I need
add "#define ZLIB_INTERNAL" on zip.c and unzip.c before include zlib.h
to have no "definition of dllimport function not allowed" error at each
function.
Pehaps the solution is give the same status for minizip than gzio : a
part of zlib itself, (or an optional part that uses internal thing).
-----Original Message-----
From: Zlib-devel-admin at zlib.net [mailto:Zlib-devel-admin at zlib.net] On
Behalf Of Cosmin Truta
Sent: Thursday, March 20, 2003 3:25 AM
To: zlib-devel at zlib.net
Subject: Re: [Zlib-devel] zlib 1.2.0.1 available for testing
Another cause for trouble is WINAPI. Not even Microsoft is using WINAPI
in their C RTL, but only in "pure" Win32 functions. Please, please
change it to CDECL! Otherwise, whoever wants to write *portable*
programs that use zlib, has to decorate all the callbacks using ZEXPORT,
and unixers surely won't like this.
More information about the Zlib-devel
mailing list