From 249b5d00f665670adbe227942eadeda0485cf4f3 Mon Sep 17 00:00:00 2001 From: firewave Date: Tue, 7 Oct 2025 17:33:45 +0200 Subject: [PATCH] fixed #562 - avoid potential redefinition of Windows-specific macros --- simplecpp.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/simplecpp.cpp b/simplecpp.cpp index ea33fd14..9f7de67d 100644 --- a/simplecpp.cpp +++ b/simplecpp.cpp @@ -7,8 +7,12 @@ # ifndef _WIN32_WINNT # define _WIN32_WINNT 0x0602 # endif -# define NOMINMAX -# define WIN32_LEAN_AND_MEAN +# ifndef NOMINMAX +# define NOMINMAX +# endif +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include # undef ERROR #endif