Debian Codegraph @

port/windows/winmain.cpp

raw
1 /* -- Include the precompiled libraries -- */
2 #ifdef WIN32
3 #pragma comment(lib, "SDL.lib")
4 #pragma comment(lib, "SDLmain.lib")
5 #endif
6
7 #include "SDL.h"
8
9 #ifdef _WIN32_WCE
10 #include <windows.h>
11
12 char *strdup(const char *s)
13 {
14 return _strdup(s);
15 }
16 #endif
17
18 #ifdef main
19 #undef main
20 #endif
21 #define main gba_main
22
23 #include "../../main.cpp"
24
25 #undef main
26
27 #include <windows.h>
28
29 // We suppress our console window in this fashion.
30 #ifdef WIN32
31 int WINAPI
32 WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
33 #else
34 int
35 main(int argc, char **argv)
36 #endif
37 {
38 // Call our main.
39 gba_main();
40
41 SDL_Quit( );
42
43 return 0;
44 }