mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r2648) Only use _stdcall calling convention for zlib on win32/msvc.
This commit is contained in:
parent
26c8bdde43
commit
951cde5b72
@ -905,7 +905,12 @@ static void WriteMem(uint size)
|
|||||||
//********************************************
|
//********************************************
|
||||||
|
|
||||||
#if defined(WITH_ZLIB)
|
#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>
|
#include <zlib.h>
|
||||||
static z_stream _z;
|
static z_stream _z;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user