check for shellscalingapi.h presence instead of WINVER >= 0x0603

This commit is contained in:
Ozkan Sezer
2022-06-18 21:51:32 +03:00
committed by Sam Lantinga
parent 5f6d0abebe
commit a8d41b3b45
7 changed files with 27 additions and 6 deletions

View File

@@ -256,6 +256,7 @@
#cmakedefine HAVE_TPCSHRD_H @HAVE_TPCSHRD_H@
#cmakedefine HAVE_SENSORSAPI_H @HAVE_SENSORSAPI_H@
#cmakedefine HAVE_ROAPI_H @HAVE_ROAPI_H@
#cmakedefine HAVE_SHELLSCALINGAPI_H @HAVE_SHELLSCALINGAPI_H@
#cmakedefine HAVE_XINPUT_GAMEPAD_EX @HAVE_XINPUT_GAMEPAD_EX@
#cmakedefine HAVE_XINPUT_STATE_EX @HAVE_XINPUT_STATE_EX@

View File

@@ -246,6 +246,7 @@
#undef HAVE_TPCSHRD_H
#undef HAVE_SENSORSAPI_H
#undef HAVE_ROAPI_H
#undef HAVE_SHELLSCALINGAPI_H
/* SDL internal assertion support */
#undef SDL_DEFAULT_ASSERT_LEVEL

View File

@@ -122,6 +122,9 @@ typedef unsigned int uintptr_t;
#if defined(WDK_NTDDI_VERSION) && WDK_NTDDI_VERSION > 0x0A000008 /* 10.0.19041.0 */
#define HAVE_D3D12_H 1
#endif
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0603 /* Windows 8.1 SDK */
#define HAVE_SHELLSCALINGAPI_H 1
#endif
#define HAVE_MMDEVICEAPI_H 1
#define HAVE_AUDIOCLIENT_H 1
#define HAVE_TPCSHRD_H 1