-
Bug
-
Resolution: Fixed
-
P2
-
11
-
b10
-
generic
-
windows
-
Verified
We want to ensure the min and max macros provided by <windef.h> are suppressed. We've been doing that by #undef'ing those names in globalDefinitions.hpp. We've further been poisoning those macro names with "#define min min" and similarly for max, to ensure include ordering doesn't permit the windef.h macros from unexpectedly sneaking in anyway, expecting a clear compile-time error if they do.
Because ofJDK-8199356 we need to remove the macro poisoning. A better solution for the Windows-specific problem would be to remove the #undefs and use the specifically documented for this purpose NOMINMAX macro to suppress the windef.h definitions. That macro should be defined via the build system.
Because of
- duplicates
-
JDK-8200084 test_align.cpp fails to build on Windows without precompiled headers
-
- Closed
-
- relates to
-
JDK-8196724 Change macosx deployment target to 10.9
-
- Resolved
-
-
JDK-8199356 Fix hotspot to allow stdlib to use libc++ and to allow changing the deployment target to 10.9
-
- Closed
-
-
JDK-8199736 Define WIN32_LEAN_AND_MEAN before including windows.h
-
- Resolved
-
-
JDK-8200084 test_align.cpp fails to build on Windows without precompiled headers
-
- Closed
-