aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2020-07-12 20:46:24 +0300
committerLasse Collin <lasse.collin@tukaani.org>2020-07-12 20:46:24 +0300
commit352ba2d69af2136bc814aa1df1a132559d445616 (patch)
treed22188524567fa5b18192db739f517279d8b3ea2 /src
parentsrc/scripts/xzgrep.1: Filenames to xzgrep are optional. (diff)
downloadxz-352ba2d69af2136bc814aa1df1a132559d445616.tar.xz
Windows: Fix building of resource files when config.h isn't used.
Now CMake + Visual Studio works for building liblzma.dll. Thanks to Markus Rickert.
Diffstat (limited to 'src')
-rw-r--r--src/common/common_w32res.rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/common_w32res.rc b/src/common/common_w32res.rc
index a70de343..d05d22e7 100644
--- a/src/common/common_w32res.rc
+++ b/src/common/common_w32res.rc
@@ -6,7 +6,9 @@
*/
#include <winresrc.h>
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#define LZMA_H_INTERNAL
#define LZMA_H_INTERNAL_RC
#include "lzma/version.h"