Signed-off-by: Martin Storsjö <[email protected]> --- This was requested on irc, in response to the previous patch. Sending as a separate patch just to be clear. --- mingw-w64-headers/include/sdkddkver.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/mingw-w64-headers/include/sdkddkver.h b/mingw-w64-headers/include/sdkddkver.h index d34c36dd8..ee1ef33e2 100644 --- a/mingw-w64-headers/include/sdkddkver.h +++ b/mingw-w64-headers/include/sdkddkver.h @@ -174,18 +174,18 @@ /* Choose NTDDI Version */ #ifndef NTDDI_VERSION -#ifdef _WIN32_WINNT -#if _WIN32_WINNT < _WIN32_WINNT_WIN10 +# ifdef _WIN32_WINNT +# if _WIN32_WINNT < _WIN32_WINNT_WIN10 /* For versions before Windows 10, set the corresponding NTDDI_VERSION. */ -#define NTDDI_VERSION NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT) -#else +# define NTDDI_VERSION NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT) +# else /* As _WIN32_WINNT doesn't distinguish between versions of Windows 10/11, * set NTDDI_VERSION to the highest version. */ -#define NTDDI_VERSION WDK_NTDDI_VERSION -#endif -#else -#define NTDDI_VERSION NTDDI_WS03 -#endif +# define NTDDI_VERSION WDK_NTDDI_VERSION +# endif +# else +# define NTDDI_VERSION NTDDI_WS03 +# endif #endif /* Choose WINVER Value */ -- 2.34.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
