[Zlib-devel] zlib 1.2.0.1 available for testing

Dmitriy Anisimkov anisimkov at omsknet.ru
Sat Mar 22 19:36:01 EST 2003


----- Original Message -----
From: "Gilles Vollant" <info at winimage.com>
To: "'Cosmin Truta'" <cosmin at cs.toronto.edu>; <zlib-devel at zlib.net>
Sent: Sunday, March 23, 2003 6:46 AM
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.
> >>
> Pehaps, but the actual zlib.dll use WINAPI function. So future zlib.dll
> must also use WINAPI function, we will not broke compatibility.

 I also prefer to have libz.a static library with C calling convension.
Otherwise I would have to change zconf.h source before build ZLib.
I have the problem with WINAPI declaration. The Zlib 1.1.4 compilation
library had compartible CDECL routines. But in 1.2.0.1 I have to change
zconf.h for make libz.a compartible.
I'm using ZLib in the Ada95 development. So my library is portable, and
calling ZLib routines assuming that it has a C calling convension. WINAPI is
not C calling convension. So my library have to have different sources for
Win32 and for other platforms, becouse of WINAPI calling convension. I think
ZLib have to have WINAPI calling convension only fo DLL build. Moreover I
did see windows DLL with a C calling convensions.





More information about the Zlib-devel mailing list