Use WIN32_LEAN_AND_MEAN in UiContext and Platform

This commit is contained in:
Aaron van Geffen 2024-05-10 12:57:05 +02:00
parent 740b624eed
commit 617003dff6
3 changed files with 9 additions and 0 deletions

View File

@ -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 <windows.h>
# include <shellapi.h>
// clang-format on

View File

@ -11,6 +11,9 @@
#include "../common.h"
#ifdef _WIN32
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# include <windows.h>
#endif

View File

@ -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 <windows.h>
// Then the rest