diff --git a/apps/launcher/main.cpp b/apps/launcher/main.cpp index a5cda76476..73bdb95dae 100644 --- a/apps/launcher/main.cpp +++ b/apps/launcher/main.cpp @@ -62,19 +62,14 @@ int main(int argc, char *argv[]) return returnValue; } - -#include -#include - -#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); -} \ No newline at end of file + return main(__argc, __argv); +} +#endif