From 72384626015f1990ab2009cdc99c32edf086c305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 24 Aug 2018 18:04:18 +0200 Subject: [PATCH] SCons: Disable min/max WinDef.h macros on MSVC Fixes #21370. --- platform/windows/detect.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/windows/detect.py b/platform/windows/detect.py index dcd3597e885..150d4185026 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'])