From f571b2fadd350713cf4a7ebaec3dc265f7852bbb Mon Sep 17 00:00:00 2001 From: Nach Date: Mon, 19 Nov 2007 22:23:18 +0000 Subject: [PATCH] Compatible with MinGW now. --- src/sdl/SDL.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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];