From 617003dff66359c60594fd0bea79de9859020313 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Fri, 10 May 2024 12:57:05 +0200 Subject: [PATCH] Use WIN32_LEAN_AND_MEAN in UiContext and Platform --- src/openrct2-ui/UiContext.Win32.cpp | 3 +++ src/openrct2/platform/Platform.Common.cpp | 3 +++ src/openrct2/platform/Platform.Win32.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/openrct2-ui/UiContext.Win32.cpp b/src/openrct2-ui/UiContext.Win32.cpp index 588dbd5d73..f2a669092a 100644 --- a/src/openrct2-ui/UiContext.Win32.cpp +++ b/src/openrct2-ui/UiContext.Win32.cpp @@ -11,6 +11,9 @@ // Windows.h needs to be included first // clang-format off +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include # include // clang-format on diff --git a/src/openrct2/platform/Platform.Common.cpp b/src/openrct2/platform/Platform.Common.cpp index b285dd0c76..72246ddd82 100644 --- a/src/openrct2/platform/Platform.Common.cpp +++ b/src/openrct2/platform/Platform.Common.cpp @@ -11,6 +11,9 @@ #include "../common.h" #ifdef _WIN32 +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include #endif diff --git a/src/openrct2/platform/Platform.Win32.cpp b/src/openrct2/platform/Platform.Win32.cpp index 8ecbda62d7..b900549d4d 100644 --- a/src/openrct2/platform/Platform.Win32.cpp +++ b/src/openrct2/platform/Platform.Win32.cpp @@ -10,6 +10,9 @@ #ifdef _WIN32 // Windows.h needs to be included first +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif # include // Then the rest