1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 23:09:40 +00:00

Cleaned up my hackish code for WinMain

This commit is contained in:
Alex "rainChu" Haddad 2013-09-30 03:33:31 -04:00
parent 00a776a1a8
commit eae02ea00d

View file

@ -62,19 +62,14 @@ int main(int argc, char *argv[])
return returnValue; return returnValue;
} }
#ifdef _WINDOWS
#include <stdlib.h> // If the system compiles for main(), then main will be used.
#include <windows.h> // If it wants WinMain, this will call main anyways.
int _stdcall WinMain(struct HINSTANCE__ *hInstance,
#ifdef __GNUC__ struct HINSTANCE__ *hPrevInstance,
#define _stdcall __attribute__((stdcall)) char *lpszCmdLine,
#endif int nCmdShow)
int _stdcall
WinMain (struct HINSTANCE__ *hInstance,
struct HINSTANCE__ *hPrevInstance,
char *lpszCmdLine,
int nCmdShow)
{ {
return main (__argc, __argv); return main(__argc, __argv);
} }
#endif