diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2020-07-12 20:46:24 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-07-12 18:09:21 +0300 |
commit | 3acf1adfc768c7d2290e138bcb1109145e4d8160 (patch) | |
tree | 7147a66abae131a7d04befa74a42c976e16348b5 | |
parent | src/scripts/xzgrep.1: Filenames to xzgrep are optional. (diff) | |
download | xz-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.
-rw-r--r-- | src/common/common_w32res.rc | 4 |
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" |