diff --git a/src/sdl/SDL.cpp b/src/sdl/SDL.cpp index a9500637..731f0a87 100644 --- a/src/sdl/SDL.cpp +++ b/src/sdl/SDL.cpp @@ -2616,6 +2616,15 @@ int main(int argc, char **argv) return 0; } +#ifdef __WIN32__ +extern "C" { + int WinMain() + { + return(main(__argc, __argv)); + } +} +#endif + void systemMessage(int num, const char *msg, ...) { char buffer[SYSMSG_BUFFER_SIZE*2];