mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Cleaned up my hackish code for WinMain
This commit is contained in:
parent
00a776a1a8
commit
eae02ea00d
@ -62,19 +62,14 @@ int main(int argc, char *argv[])
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define _stdcall __attribute__((stdcall))
|
||||
#endif
|
||||
|
||||
int _stdcall
|
||||
WinMain (struct HINSTANCE__ *hInstance,
|
||||
struct HINSTANCE__ *hPrevInstance,
|
||||
char *lpszCmdLine,
|
||||
int nCmdShow)
|
||||
#ifdef _WINDOWS
|
||||
// If the system compiles for main(), then main will be used.
|
||||
// If it wants WinMain, this will call main anyways.
|
||||
int _stdcall WinMain(struct HINSTANCE__ *hInstance,
|
||||
struct HINSTANCE__ *hPrevInstance,
|
||||
char *lpszCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
return main (__argc, __argv);
|
||||
}
|
||||
return main(__argc, __argv);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user