mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 19:09:41 +00:00
Cleaned up my hackish code for WinMain
This commit is contained in:
parent
00a776a1a8
commit
eae02ea00d
1 changed files with 10 additions and 15 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue