saveload.c
changeset 2138 44ab9e23c669
parent 2126 9e3c8fe5d4ce
child 2141 d3167783c73c
equal deleted inserted replaced
2137:bbf04957feec 2138:44ab9e23c669
   903 //********************************************
   903 //********************************************
   904 //********** START OF ZLIB CODE **************
   904 //********** START OF ZLIB CODE **************
   905 //********************************************
   905 //********************************************
   906 
   906 
   907 #if defined(WITH_ZLIB)
   907 #if defined(WITH_ZLIB)
   908 #define ZLIB_WINAPI // Needed so zlib uses the right calling convention.
   908 
       
   909 // This is needed to zlib uses the stdcall calling convention on visual studio
       
   910 #ifdef _MSC_VER
       
   911 #define ZLIB_WINAPI
       
   912 #endif
       
   913 
   909 #include <zlib.h>
   914 #include <zlib.h>
   910 static z_stream _z;
   915 static z_stream _z;
   911 
   916 
   912 static bool InitReadZlib(void)
   917 static bool InitReadZlib(void)
   913 {
   918 {