summaryrefslogtreecommitdiff
path: root/platform/windows/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-08-24 18:04:18 +0200
committerRémi Verschelde <rverschelde@gmail.com>2018-08-24 18:04:18 +0200
commit72384626015f1990ab2009cdc99c32edf086c305 (patch)
treed4d96d6e3721588affc428dabffa0a92456ee913 /platform/windows/detect.py
parent0b67d1665d94f91069e9163087f51c632d5b4d1d (diff)
SCons: Disable min/max WinDef.h macros on MSVC
Fixes #21370.
Diffstat (limited to 'platform/windows/detect.py')
-rw-r--r--platform/windows/detect.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index dcd3597e88..150d418502 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -210,6 +210,7 @@ def configure_msvc(env, manual_msvc_config):
'WIN32', 'MSVC',
{'WINVER' : '$target_win_version',
'_WIN32_WINNT': '$target_win_version'}])
+ env.AppendUnique(CPPDEFINES=['NOMINMAX']) # disable bogus min/max WinDef.h macros
if env["bits"] == "64":
env.AppendUnique(CPPDEFINES=['_WIN64'])