From 898054a179998d50586256b01f5c067ec8a26630 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Sun, 6 Dec 2015 17:32:33 -0500 Subject: [PATCH] WinRT: fixed a build error when compiling Windows 8.1 .dlls --- src/video/winrt/SDL_winrtvideo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/winrt/SDL_winrtvideo.cpp b/src/video/winrt/SDL_winrtvideo.cpp index 2c252477d..d7f6cb379 100644 --- a/src/video/winrt/SDL_winrtvideo.cpp +++ b/src/video/winrt/SDL_winrtvideo.cpp @@ -330,7 +330,7 @@ WINRT_AddDisplaysForAdapter (_THIS, IDXGIFactory2 * dxgiFactory2, int adapterInd happens, and use a hackish means to create a reasonable-as-possible 'display mode'. -- DavidL */ -#if SDL_WINRT_USE_APPLICATIONVIEW +#if (NTDDI_VERSION >= NTDDI_WIN10) && SDL_WINRT_USE_APPLICATIONVIEW if (adapterIndex == 0 && outputIndex == 0) { SDL_VideoDisplay display; SDL_DisplayMode mode; @@ -358,7 +358,7 @@ WINRT_AddDisplaysForAdapter (_THIS, IDXGIFactory2 * dxgiFactory2, int adapterInd return SDL_SetError("Failed to apply DXGI Display-detection workaround"); } } -#endif // SDL_WINRT_USE_APPLICATIONVIEW +#endif // (NTDDI_VERSION >= NTDDI_WIN10) && SDL_WINRT_USE_APPLICATIONVIEW break; }