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>2022-07-12 18:09:21 +0300
commit3acf1adfc768c7d2290e138bcb1109145e4d8160 (patch)
tree7147a66abae131a7d04befa74a42c976e16348b5 /src
parentsrc/scripts/xzgrep.1: Filenames to xzgrep are optional. (diff)
downloadxz-3acf1adfc768c7d2290e138bcb1109145e4d8160.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"