From d8629fee09d12c4162d5e460ecee915af7e8d20c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 21 Feb 2013 01:22:10 +0100 Subject: [PATCH] Platform: don't allow SDL2 to redefine main(). --- src/Platform/Sdl2Application.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Platform/Sdl2Application.h b/src/Platform/Sdl2Application.h index 281f00231..851d0004c 100644 --- a/src/Platform/Sdl2Application.h +++ b/src/Platform/Sdl2Application.h @@ -22,6 +22,9 @@ #include "Math/Vector2.h" #include "Magnum.h" +#ifdef _WIN32 /* Windows version of SDL2 redefines main(), we don't want that */ +#define SDL_MAIN_HANDLED +#endif #include #include #include