Commit fff83d8e52decbe504f500f30d2de4ceff89aeb3

David Ludwig 2013-09-16T21:09:58

WinRT: reduced the size of SDL_winrt_main.cpp by a little bit

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/main/winrt/SDL_winrt_main.cpp b/src/main/winrt/SDL_winrt_main.cpp
index b06def8..81ccfb3 100644
--- a/src/main/winrt/SDL_winrt_main.cpp
+++ b/src/main/winrt/SDL_winrt_main.cpp
@@ -4,8 +4,7 @@
 /* The app's C-style main will be passed into SDL.dll as a function
    pointer, and called at the appropriate time.
 */
-typedef int (*SDLmain_MainFunction)(int, char **);
-extern __declspec(dllimport) int SDL_WinRT_RunApplication(SDLmain_MainFunction mainFunction);
+extern __declspec(dllimport) int SDL_WinRT_RunApplication(int (*)(int, char **));
 extern "C" int SDL_main(int, char **);
 
 /* Prevent MSVC++ from warning about threading models when defining our