include/SDL_main.h
changeset 8480 733f78caa9cb
parent 8477 ad08f0d710f3
child 8500 f25ef28d61e8
     1.1 --- a/include/SDL_main.h	Tue Aug 13 20:11:51 2013 -0400
     1.2 +++ b/include/SDL_main.h	Tue Aug 13 20:28:10 2013 -0400
     1.3 @@ -39,6 +39,16 @@
     1.4   */
     1.5  #define SDL_MAIN_AVAILABLE
     1.6  
     1.7 +#elif defined(__WINRT__)
     1.8 +/* On Windows RT, SDL provides a main function that initializes CoreApplication,
     1.9 +   creating an instance of IFrameworkView in the process.
    1.10 +
    1.11 +   Please note that #include'ing SDL_main.h is not enough to get a main()
    1.12 +   function working.  The file, src/main/windowsrt/SDL_WinRT_main.cpp, or a copy
    1.13 +   of it, must be compiled into the app itself.
    1.14 +*/
    1.15 +#define SDL_MAIN_NEEDED
    1.16 +
    1.17  #elif defined(__IPHONEOS__)
    1.18  /* On iOS SDL provides a main function that creates an application delegate
    1.19     and starts the iOS application run loop.