summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-20 09:35:05 +0000
committerludde <ludde@openttd.org>2005-07-20 09:35:05 +0000
commit951cde5b72de9c4eae48b68ad363df18bbae69c1 (patch)
tree55a9e3eca29f78b76c205e83ecb0f208b5a66218
parent26c8bdde4364f3aa40159ea8d144c12f7040e77c (diff)
downloadopenttd-951cde5b72de9c4eae48b68ad363df18bbae69c1.tar.xz
(svn r2648) Only use _stdcall calling convention for zlib on win32/msvc.
-rw-r--r--saveload.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/saveload.c b/saveload.c
index 365f0b496..fdc4d5847 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 <zlib.h>
static z_stream _z;