RFR: JDK-8285730: unify _WIN32_WINNT settings [v4]

Matthias Baesken mbaesken at openjdk.java.net
Wed May 4 09:11:17 UTC 2022


On Wed, 4 May 2022 08:34:43 GMT, David Holmes <dholmes at openjdk.org> wrote:

> I'm confused. `src\jdk.crypto.mscapi\windows\native\libsunmscapi\security.cpp` doesn't set _WIN32_WINNT so how is that later API being enabled? Does this mean that not setting _WIN32_WINNT means :any API is allowed" ?

I found this info  here  https://stackoverflow.com/questions/37668692/visual-studio-setting-winver-win32-winnt-to-windows-8-on-windows-7
"VS 2012 uses the Windows 8.0 SDK which defaults to _WIN32_WINNT=0x0602 (Windows 8). VS 2013 / 2015 uses the Windows 8.1 SDK which defaults to _WIN32_WINNT=0x0603 (Windows 8.1). If you use VS 2015 and the Windows 10 SDK, it defaults to _WIN32_WINNT=0x0A00 (Windows 10)."

So it seems you get some more or less recent default when working with a not too old compiler/SDK.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8428



More information about the build-dev mailing list