From 352ba2d69af2136bc814aa1df1a132559d445616 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 12 Jul 2020 20:46:24 +0300 Subject: [PATCH] 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. --- src/common/common_w32res.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"