Cleaned up my hackish code for WinMain

pull/37/head
Alex "rainChu" Haddad 11 years ago
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…
Cancel
Save