From 3acf1adfc768c7d2290e138bcb1109145e4d8160 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"