mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Don't use ZLIB_WINAPI if the required DLL is not provided to CMake
This allows you to use an stdcall zlib (zlib1.dll instead of zlibwapi.dll) when building Minetest for win32.
This commit is contained in:
parent
3a57e52500
commit
af4c2107e0
2 changed files with 11 additions and 4 deletions
|
@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "serialization.h"
|
||||
|
||||
#include "util/serialize.h"
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && !defined(WIN32_NO_ZLIB_WINAPI)
|
||||
#define ZLIB_WINAPI
|
||||
#endif
|
||||
#include "zlib.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue