Merge pull request #21375 from akien-mga/msvc-nominmax
SCons: Disable min/max WinDef.h macros on MSVC
This commit is contained in:
commit
ff81b2daea
@ -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'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user