File: winmain.cpp

package info (click to toggle)
powder 117-1
  • links: PTS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 10,360 kB
  • ctags: 3,545
  • sloc: cpp: 55,002; makefile: 541; sh: 258; objc: 245; ansic: 107; csh: 54
file content (44 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* -- Include the precompiled libraries -- */
#ifdef WIN32
#pragma comment(lib, "SDL.lib")
#pragma comment(lib, "SDLmain.lib")
#endif

#include "SDL.h"

#ifdef _WIN32_WCE
#include <windows.h>

char *strdup(const char *s)
{
    return _strdup(s);
}
#endif

#ifdef main
#undef main
#endif
#define main gba_main

#include "../../main.cpp"

#undef main

#include <windows.h>

// We suppress our console window in this fashion.
#ifdef WIN32
int WINAPI
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
#else
int 
main(int argc, char **argv)
#endif
{
    // Call our main.
    gba_main();
    
    SDL_Quit( );

    return 0;
}