From: Lasse Collin Date: Sun, 12 Jul 2020 17:46:24 +0000 (+0300) Subject: Windows: Fix building of resource files when config.h isn't used. X-Git-Tag: v5.3.2alpha~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=352ba2d69af2136bc814aa1df1a132559d445616;p=thirdparty%2Fxz.git 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. --- 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 -#include "config.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #define LZMA_H_INTERNAL #define LZMA_H_INTERNAL_RC #include "lzma/version.h"