diff options
author | ludde <ludde@openttd.org> | 2005-07-20 09:35:05 +0000 |
---|---|---|
committer | ludde <ludde@openttd.org> | 2005-07-20 09:35:05 +0000 |
commit | 50660a2c94f9b3c7c7ff41e36b537e872decad30 (patch) | |
tree | 55a9e3eca29f78b76c205e83ecb0f208b5a66218 /saveload.c | |
parent | 57f92104af8e9d7c57cce5d81031704ac2cb3ae4 (diff) | |
download | openttd-50660a2c94f9b3c7c7ff41e36b537e872decad30.tar.xz |
(svn r2648) Only use _stdcall calling convention for zlib on win32/msvc.
Diffstat (limited to 'saveload.c')
-rw-r--r-- | saveload.c | 7 |
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; |