summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-09-11 13:12:44 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-09-12 13:12:55 +0200
commit081d425277535bd102709e0fea66565033a9227c (patch)
tree91cd6497baaa7b8049a60b3233481c25aaba4b22 /tools
parente272d928271056634ed886c145731ab50ee07969 (diff)
downloadredot-cpp-081d425277535bd102709e0fea66565033a9227c.tar.gz
[MSVC] Add NOMINMAX flag to scons and cmake.
Ensures user inclusion of windows.h do not define "min" and "max" macros.
Diffstat (limited to 'tools')
-rw-r--r--tools/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/windows.py b/tools/windows.py
index 9c5ea6f..3d5d22e 100644
--- a/tools/windows.py
+++ b/tools/windows.py
@@ -24,7 +24,7 @@ def generate(env):
env["TARGET_ARCH"] = "x86"
env["is_msvc"] = True
msvc.generate(env)
- env.Append(CPPDEFINES=["TYPED_METHOD_BIND"])
+ env.Append(CPPDEFINES=["TYPED_METHOD_BIND", "NOMINMAX"])
env.Append(LINKFLAGS=["/WX"])
if env["target"] == "debug":
env.Append(CCFLAGS=["/Z7", "/Od", "/EHsc", "/D_DEBUG", "/MDd"])