diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2020-07-12 20:46:24 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2020-07-12 20:46:24 +0300 |
commit | 352ba2d69af2136bc814aa1df1a132559d445616 (patch) | |
tree | d22188524567fa5b18192db739f517279d8b3ea2 | |
parent | src/scripts/xzgrep.1: Filenames to xzgrep are optional. (diff) | |
download | xz-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 '')
-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" |