Skip to content
Browse files

WinRT: made sure SDL_main gets used in the latest SDL 2.0.0 based code

  • Loading branch information
DavidLudwig committed Aug 14, 2013
1 parent 11dc532 commit 3dde6e1e9fb660b98cd1b5d06a48142ebc8aa666
Showing with 10 additions and 0 deletions.
  1. +10 −0 include/SDL_main.h
@@ -39,6 +39,16 @@

#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.

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

0 comments on commit 3dde6e1

Please sign in to comment.