WinRT: fixed SDL_main-related linker error when __WINRT__ is defined in an app
authorDavid Ludwig <dludwig@pobox.com>
Sun, 04 Nov 2012 13:17:18 -0500
changeset 8338 53c8cafb945a
parent 8336 0b9aa42be7ae
child 8339 aee5d42068ac
WinRT: fixed SDL_main-related linker error when __WINRT__ is defined in an app
include/SDL_main.h
--- a/include/SDL_main.h	Sun Nov 04 09:02:58 2012 -0500
+++ b/include/SDL_main.h	Sun Nov 04 13:17:18 2012 -0500
@@ -30,7 +30,7 @@
  *  Redefine main() on some platforms so that it is called by SDL.
  */
 
-#if defined(__WIN32__) || defined(__IPHONEOS__) || defined(__ANDROID__)
+#if defined(__WIN32__) || defined(__WINRT__) || defined(__IPHONEOS__) || defined(__ANDROID__)
 #ifndef SDL_MAIN_HANDLED
 #define SDL_MAIN_NEEDED
 #endif