From 4fa50062472795234806e89eccf1fcebbab3407a Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 27 May 2024 00:44:53 +0200 Subject: [PATCH] VC+d3d12: use __has_include to detect presence of d3d12 ehaders --- include/build_config/SDL_build_config_windows.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/build_config/SDL_build_config_windows.h b/include/build_config/SDL_build_config_windows.h index e6bc73f73..432036e09 100644 --- a/include/build_config/SDL_build_config_windows.h +++ b/include/build_config/SDL_build_config_windows.h @@ -92,7 +92,7 @@ typedef unsigned int uintptr_t; #define HAVE_D3D11_H 1 #define HAVE_ROAPI_H 1 #endif -#if defined(WDK_NTDDI_VERSION) && WDK_NTDDI_VERSION > 0x0A000008 /* 10.0.19041.0 */ +#if defined(__has_include) && __has_include() && __has_include() #define HAVE_D3D12_H 1 #endif #if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0603 /* Windows 8.1 SDK */