[Commits] SDL: winrt: workaround for pre-UWP builds.

libsdl.org revision control commits-owner at libsdl.org
Sun Dec 31 00:37:04 PST 2017


details:   https://hg.libsdl.org/SDL/rev/ceab26a45523
changeset: 11795:ceab26a45523
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Sun Dec 31 03:36:54 2017 -0500
description:
winrt: workaround for pre-UWP builds.

There's probably a better way to do this for legacy platforms, though.

diffstat:

 src/core/winrt/SDL_winrtapp_common.cpp |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r c40f03dda342 -r ceab26a45523 src/core/winrt/SDL_winrtapp_common.cpp
--- a/src/core/winrt/SDL_winrtapp_common.cpp	Sun Dec 31 03:35:41 2017 -0500
+++ b/src/core/winrt/SDL_winrtapp_common.cpp	Sun Dec 31 03:36:54 2017 -0500
@@ -45,6 +45,7 @@
 extern "C" DECLSPEC SDL_WinRT_DeviceFamily
 SDL_WinRTGetDeviceFamily()
 {
+#if NTDDI_VERSION >= NTDDI_WIN10  /* !!! FIXME: I have no idea if this is the right test. This is a UWP API, I think. Older windows should...just return "mobile"? I don't know. --ryan. */
     Platform::String^ deviceFamily = Windows::System::Profile::AnalyticsInfo::VersionInfo->DeviceFamily;
 
     if (deviceFamily->Equals("Windows.Desktop"))
@@ -59,6 +60,7 @@
     {
         return SDL_WINRT_DEVICEFAMILY_XBOX;
     }
+#endif
 
     return SDL_WINRT_DEVICEFAMILY_UNKNOWN;
 }
\ No newline at end of file


More information about the commits mailing list