You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Merge pull request #21375 from akien-mga/msvc-nominmax
SCons: Disable min/max WinDef.h macros on MSVC
This commit is contained in:
@@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user