From fddcb7f2d43ef752804af759f2c2194da8c8e9c5 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 21 Sep 2025 23:53:26 -0400 Subject: [PATCH] [idd] helper: define WIN32_LEAN_AND_MEAN globally It doesn't really help that much, but since we are defining it in some headers, we might as well do it everywhere so it actually has some effect in case the headers were included in a different order. --- idd/LGIddHelper/CWidget.h | 1 - idd/LGIddHelper/CWindow.h | 1 - idd/LGIddHelper/LGIddHelper.vcxproj | 8 ++++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/idd/LGIddHelper/CWidget.h b/idd/LGIddHelper/CWidget.h index a50f5905..ff1c6f77 100644 --- a/idd/LGIddHelper/CWidget.h +++ b/idd/LGIddHelper/CWidget.h @@ -1,6 +1,5 @@ #pragma once -#define WIN32_LEAN_AND_MEAN #include class CWidget { diff --git a/idd/LGIddHelper/CWindow.h b/idd/LGIddHelper/CWindow.h index 8a23d95d..30bf2f6a 100644 --- a/idd/LGIddHelper/CWindow.h +++ b/idd/LGIddHelper/CWindow.h @@ -1,6 +1,5 @@ #pragma once -#define WIN32_LEAN_AND_MEAN #include #include diff --git a/idd/LGIddHelper/LGIddHelper.vcxproj b/idd/LGIddHelper/LGIddHelper.vcxproj index 998c8f73..f8b796af 100644 --- a/idd/LGIddHelper/LGIddHelper.vcxproj +++ b/idd/LGIddHelper/LGIddHelper.vcxproj @@ -75,7 +75,7 @@ Level3 true - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + WIN32;_DEBUG;_CONSOLE;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions) true $(SolutionDir)LGCommon;%(AdditionalIncludeDirectories) @@ -99,7 +99,7 @@ copy /Y "$(ProjectDir)VERSION" "$(SolutionDir)$(Platform)\$(Configuration)\LGIdd true true true - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + WIN32;NDEBUG;_CONSOLE;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions) true $(SolutionDir)LGCommon;%(AdditionalIncludeDirectories) @@ -123,7 +123,7 @@ copy /Y "$(ProjectDir)VERSION" "$(SolutionDir)$(Platform)\$(Configuration)\LGIdd Level3 true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions) true Default Default @@ -151,7 +151,7 @@ copy /Y "$(ProjectDir)VERSION" "$(SolutionDir)$(Platform)\$(Configuration)\LGIdd true true true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions) true Default Default