8199619: Building HotSpot on Windows should define NOMINMAX
authorrwestberg
Wed, 28 Mar 2018 15:30:43 +0200
changeset 49663 0ab2411f270d
parent 49662 3614cbddd005
child 49664 9a04cc89dde0
8199619: Building HotSpot on Windows should define NOMINMAX Reviewed-by: erikj, kbarrett, ihse
make/autoconf/flags-cflags.m4
--- a/make/autoconf/flags-cflags.m4	Tue Apr 03 08:56:46 2018 -0700
+++ b/make/autoconf/flags-cflags.m4	Wed Mar 28 15:30:43 2018 +0200
@@ -455,6 +455,7 @@
   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
     ALWAYS_DEFINES_JDK="-DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_DEPRECATE \
         -D_CRT_NONSTDC_NO_DEPRECATE -DWIN32 -DIAL"
+    ALWAYS_DEFINES_JVM="-DNOMINMAX"
   fi
 
   ###############################################################################