Skip to content

Commit

Permalink
WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Aug 14, 2013
1 parent 11dc532 commit 3dde6e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/SDL_main.h
Expand Up @@ -39,6 +39,16 @@
*/
#define SDL_MAIN_AVAILABLE

#elif defined(__WINRT__)
/* On Windows RT, SDL provides a main function that initializes CoreApplication,
creating an instance of IFrameworkView in the process.
Please note that #include'ing SDL_main.h is not enough to get a main()
function working. The file, src/main/windowsrt/SDL_WinRT_main.cpp, or a copy
of it, must be compiled into the app itself.
*/
#define SDL_MAIN_NEEDED

#elif defined(__IPHONEOS__)
/* On iOS SDL provides a main function that creates an application delegate
and starts the iOS application run loop.
Expand Down

0 comments on commit 3dde6e1

Please sign in to comment.