VC+d3d12: use __has_include to detect presence of d3d12 ehaders

This commit is contained in:
Anonymous Maarten 2024-05-27 00:44:53 +02:00
parent bba76859f5
commit 4fa5006247
1 changed files with 1 additions and 1 deletions

View File

@ -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(<d3d12.h>) && __has_include(<d3d12sdklayers.h>)
#define HAVE_D3D12_H 1
#endif
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0603 /* Windows 8.1 SDK */