WinRT: fixed a build error when compiling Windows 8.1 .dlls
authorDavid Ludwig <dludwig@pobox.com>
Sun, 06 Dec 2015 17:32:33 -0500
changeset 9949 67cc0111da82
parent 9948 46ba1492b14b
child 9950 6cc7e0682758
WinRT: fixed a build error when compiling Windows 8.1 .dlls
src/video/winrt/SDL_winrtvideo.cpp
--- a/src/video/winrt/SDL_winrtvideo.cpp	Sun Dec 06 17:07:37 2015 -0500
+++ b/src/video/winrt/SDL_winrtvideo.cpp	Sun Dec 06 17:32:33 2015 -0500
@@ -330,7 +330,7 @@
                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 @@
                     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;
         }