aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-25 22:38:47 +0200
committerMartin Ridgers <[email protected]>2021-10-25 22:50:44 +0200
commitb5012d203fc1e2a5ed93221035a1045cac6415f6 (patch)
tree26cbcd3a7937df0f53b1e2b8ced1a599a8413485 /zencore/include
parentMissing include for std::min/max (diff)
downloadzen-b5012d203fc1e2a5ed93221035a1045cac6415f6.tar.xz
zen-b5012d203fc1e2a5ed93221035a1045cac6415f6.zip
Define NOMINMAX and WIN32_MEAN_AND_LEAN via xmake.lua too
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/windows.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/zencore/include/zencore/windows.h b/zencore/include/zencore/windows.h
index 68138566b..417d473e0 100644
--- a/zencore/include/zencore/windows.h
+++ b/zencore/include/zencore/windows.h
@@ -10,7 +10,9 @@ struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax erro
#ifndef NOMINMAX
# define NOMINMAX // We don't want your min/max macros
#endif
-#define WIN32_LEAN_AND_MEAN
+#ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN
+#endif
#include <windows.h>
#undef GetObject