src/main/winrt/SDL_winrt_main.cpp
changeset 8528 38d0b62a215f
parent 8525 817a90b4704e
equal deleted inserted replaced
8527:e3807733fad5 8528:38d0b62a215f
     2 #include <wrl.h>
     2 #include <wrl.h>
     3 
     3 
     4 /* The app's C-style main will be passed into SDL.dll as a function
     4 /* The app's C-style main will be passed into SDL.dll as a function
     5    pointer, and called at the appropriate time.
     5    pointer, and called at the appropriate time.
     6 */
     6 */
     7 typedef int (*SDLmain_MainFunction)(int, char **);
     7 extern __declspec(dllimport) int SDL_WinRT_RunApplication(int (*)(int, char **));
     8 extern __declspec(dllimport) int SDL_WinRT_RunApplication(SDLmain_MainFunction mainFunction);
       
     9 extern "C" int SDL_main(int, char **);
     8 extern "C" int SDL_main(int, char **);
    10 
     9 
    11 /* Prevent MSVC++ from warning about threading models when defining our
    10 /* Prevent MSVC++ from warning about threading models when defining our
    12    custom WinMain.  The threading model will instead be set via a direct
    11    custom WinMain.  The threading model will instead be set via a direct
    13    call to Windows::Foundation::Initialize (rather than via an attributed
    12    call to Windows::Foundation::Initialize (rather than via an attributed