# HG changeset patch # User rwestberg # Date 1523261378 -7200 # Node ID 4ae63fcabe2ed8b6cb5bd848f31359904b5eaaf2 # Parent e740e1a38c96ae16806fad19cac1ffd81fe8c128 8199736: Define WIN32_LEAN_AND_MEAN before including windows.h Reviewed-by: erikj, ihse, kbarrett, dholmes diff -r e740e1a38c96 -r 4ae63fcabe2e make/autoconf/flags-cflags.m4 --- a/make/autoconf/flags-cflags.m4 Mon Apr 09 20:36:04 2018 -0400 +++ b/make/autoconf/flags-cflags.m4 Mon Apr 09 10:09:38 2018 +0200 @@ -453,7 +453,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" + ALWAYS_DEFINES_JVM="-DNOMINMAX -DWIN32_LEAN_AND_MEAN" fi ############################################################################### diff -r e740e1a38c96 -r 4ae63fcabe2e src/hotspot/os/windows/os_windows.cpp --- a/src/hotspot/os/windows/os_windows.cpp Mon Apr 09 20:36:04 2018 -0400 +++ b/src/hotspot/os/windows/os_windows.cpp Mon Apr 09 10:09:38 2018 +0200 @@ -99,6 +99,8 @@ // for enumerating dll libraries #include #include +#include +#include // for timer info max values which include all bits #define ALL_64_BITS CONST64(-1) diff -r e740e1a38c96 -r 4ae63fcabe2e src/hotspot/share/interpreter/bytecodes.cpp --- a/src/hotspot/share/interpreter/bytecodes.cpp Mon Apr 09 20:36:04 2018 -0400 +++ b/src/hotspot/share/interpreter/bytecodes.cpp Mon Apr 09 10:09:38 2018 +0200 @@ -45,7 +45,7 @@ s_char Bytecodes::_depth [Bytecodes::number_of_codes]; u_char Bytecodes::_lengths [Bytecodes::number_of_codes]; Bytecodes::Code Bytecodes::_java_code [Bytecodes::number_of_codes]; -u_short Bytecodes::_flags [(1< #include #include +#elif defined(_WINDOWS) +#include #endif // Network access