From 50660a2c94f9b3c7c7ff41e36b537e872decad30 Mon Sep 17 00:00:00 2001 From: ludde Date: Wed, 20 Jul 2005 09:35:05 +0000 Subject: [PATCH] (svn r2648) Only use _stdcall calling convention for zlib on win32/msvc. --- saveload.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/saveload.c b/saveload.c index 365f0b4967..fdc4d58479 100644 --- a/saveload.c +++ b/saveload.c @@ -905,7 +905,12 @@ static void WriteMem(uint size) //******************************************** #if defined(WITH_ZLIB) -#define ZLIB_WINAPI // Needed so zlib uses the right calling convention. + +// This is needed to zlib uses the stdcall calling convention on visual studio +#ifdef _MSC_VER +#define ZLIB_WINAPI +#endif + #include static z_stream _z;