summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorglx22 <glx22@users.noreply.github.com>2019-06-03 00:18:28 +0200
committerGitHub <noreply@github.com>2019-06-03 00:18:28 +0200
commit846fc8fe097689ef2fa1498708b3244fb4ad84ac (patch)
tree714236c22cddfb10218a93cb1b32d8af1f280e2b /src/stdafx.h
parentef74af67667e33ea2da88d9969ca928bd25e999f (diff)
downloadopenttd-846fc8fe097689ef2fa1498708b3244fb4ad84ac.tar.xz
Fix: vcpkg used to patch lzma.h to define LZMA_API_STATIC for static builds (#7614)
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 123dffa13..b7aefb9f0 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -233,6 +233,13 @@
# endif
# endif
+ /* liblzma from vcpkg (before 5.2.4-2) used to patch lzma.h to define LZMA_API_STATIC for static builds */
+# if defined(WITH_LIBLZMA)
+# if !defined(LZMA_API_STATIC)
+# define LZMA_API_STATIC
+# endif
+# endif
+
#define strcasecmp stricmp
#define strncasecmp strnicmp
#define strtoull _strtoui64