WinRT: fixed a build error when compiling Windows 8.1 .dlls
authorDavid Ludwig
Sun, 06 Dec 2015 17:32:33 -0500
changeset 994967cc0111da82
parent 9948 46ba1492b14b
child 9950 6cc7e0682758
WinRT: fixed a build error when compiling Windows 8.1 .dlls
src/video/winrt/SDL_winrtvideo.cpp
     1.1 --- a/src/video/winrt/SDL_winrtvideo.cpp	Sun Dec 06 17:07:37 2015 -0500
     1.2 +++ b/src/video/winrt/SDL_winrtvideo.cpp	Sun Dec 06 17:32:33 2015 -0500
     1.3 @@ -330,7 +330,7 @@
     1.4                 happens, and use a hackish means to create a reasonable-as-possible
     1.5                 'display mode'.  -- DavidL
     1.6              */
     1.7 -#if SDL_WINRT_USE_APPLICATIONVIEW
     1.8 +#if (NTDDI_VERSION >= NTDDI_WIN10) && SDL_WINRT_USE_APPLICATIONVIEW
     1.9              if (adapterIndex == 0 && outputIndex == 0) {
    1.10                  SDL_VideoDisplay display;
    1.11                  SDL_DisplayMode mode;
    1.12 @@ -358,7 +358,7 @@
    1.13                      return SDL_SetError("Failed to apply DXGI Display-detection workaround");
    1.14                  }
    1.15              }
    1.16 -#endif  // SDL_WINRT_USE_APPLICATIONVIEW
    1.17 +#endif  // (NTDDI_VERSION >= NTDDI_WIN10) && SDL_WINRT_USE_APPLICATIONVIEW
    1.18  
    1.19              break;
    1.20          }