From b2d5d3d870a9ac308ca95121505200a6606ca96f Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Mon, 4 Jan 2016 21:37:14 +0100 Subject: [PATCH] premake5: Fix non-static builds of zlib. --- premake5.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index af15b69f..061f7601 100644 --- a/premake5.lua +++ b/premake5.lua @@ -127,7 +127,7 @@ workspace "iw4x" -- zlib project "zlib" language "C" - defines { "_CRT_SECURE_NO_DEPRECATE" } + defines { "ZLIB_DLL", "_CRT_SECURE_NO_DEPRECATE" } files { @@ -141,3 +141,4 @@ workspace "iw4x" kind "SharedLib" configuration "*Static" kind "StaticLib" + removedefines { "ZLIB_DLL" }