Parcourir la source

WinRT: made SDL_GetPlatform() return "WinRT" and not 'Unknown'

Thanks to Eric Wing for the heads-up on this!
David Ludwig il y a 11 ans
Parent
commit
646025b6c2
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/SDL.c

+ 2 - 0
src/SDL.c

@@ -439,6 +439,8 @@ SDL_GetPlatform()
     return "Solaris";
     return "Solaris";
 #elif __WIN32__
 #elif __WIN32__
     return "Windows";
     return "Windows";
+#elif __WINRT__
+    return "WinRT";
 #elif __IPHONEOS__
 #elif __IPHONEOS__
     return "iOS";
     return "iOS";
 #elif __PSP__
 #elif __PSP__