Add /DNOMINMAX back to CROSSTOOL /DNOMINMAX is a very common use and no one has complained about it yet, so keep it in CROSSTOOL Fixed https://github.com/bazelbuild/bazel/issues/3347 RELNOTES: None. PiperOrigin-RevId: 161381862
diff --git a/tools/cpp/CROSSTOOL.tpl b/tools/cpp/CROSSTOOL.tpl index 9e74417..f327306 100644 --- a/tools/cpp/CROSSTOOL.tpl +++ b/tools/cpp/CROSSTOOL.tpl
@@ -175,6 +175,9 @@ compiler_flag: "/DOS_WINDOWS=OS_WINDOWS" compiler_flag: "/DCOMPILER_MSVC" + # Don't define min/max macros in windows.h. + compiler_flag: "/DNOMINMAX" + # Platform defines. compiler_flag: "/D_WIN32_WINNT=0x0600" # Turn off warning messages.