From 69763e881124ef86478ff7f211d37cdd66bee8ec Mon Sep 17 00:00:00 2001 From: Wertzui123 <46199283+Wertzui123@users.noreply.github.com> Date: Sat, 7 Oct 2023 14:13:08 +0200 Subject: [PATCH] Don't redefine `WIN32_LEAN_AND_MEAN` if already defined --- miniz_zip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/miniz_zip.c b/miniz_zip.c index a7fa70f..46c70cf 100644 --- a/miniz_zip.c +++ b/miniz_zip.c @@ -41,7 +41,9 @@ extern "C" { #if defined(_MSC_VER) || defined(__MINGW64__) || defined(__MINGW32__) -#define WIN32_LEAN_AND_MEAN +#ifndef WIN32_LEAN_AND_MEAN + #define WIN32_LEAN_AND_MEAN +#endif #ifndef __cplusplus #define MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS 0 #endif