[Zlib-devel] zlib 1.2.0.1 available for testing
Gilles Vollant
info at winimage.com
Sun Mar 23 17:16:01 EST 2003
The solution below can be also good solution
If we agree that that, actually, ZLIB_DLL is always uses to "uses the
zlib.dll with WINAPI calling"
(In other term, ZLIB_DLL is only for users of the DLL Iacopetti and now
me build)
Why not add
#if defined(ZLIB_DLL) && (!defined(ZAPI)) && (defined(_WINDOWS) ||
defined(WINDOWS) || defined(WIN32))
# define ZAPI STDCALL
#endif
-----Original Message-----
From: Cosmin Truta [mailto:cosmin at cs.toronto.edu]
Sent: Sunday, March 23, 2003 11:11 PM
To: Gilles Vollant
Cc: zlib-devel at zlib.net; Christian Spieler
Subject: Re: RE : [Zlib-devel] zlib 1.2.0.1 available for testing
/* ... under the ZLIB_DLL+WIN32 guards ... */
# ifndef ZAPI
# define ZAPI CDECL
# endif
# ifdef ZLIB_INTERNAL
# define ZEXPORT ZAPI __declspec(dllexport)
# define ZEXPORTVA CDECL __declspec(dllexport)
# else
# define ZEXPORT ZAPI __declspec(dllimport)
# define ZEXPORTVA CDECL __declspec(dllimport)
# endif
/* ... outside ... */
#ifndef ZAPI
# define ZAPI
#endif
#ifndef ZEXPORT
# define ZEXPORT
#endif
#ifndef ZEXPORTVA
# define ZEXPORTVA
#endif
More information about the Zlib-devel
mailing list