From b73b9cb40882d1c4975cdb45477b5265ae7f2211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 12 Nov 2018 20:43:48 +0100 Subject: [PATCH] Platform: remove 50 000 lines from Sdl2Application header. Of all the libraries I use, I expected SDL to do the "include the world" horror the least of all. Ugh. --- src/Magnum/Platform/Sdl2Application.cpp | 1 + src/Magnum/Platform/Sdl2Application.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp index 9406d11a6..b4689078a 100644 --- a/src/Magnum/Platform/Sdl2Application.cpp +++ b/src/Magnum/Platform/Sdl2Application.cpp @@ -26,6 +26,7 @@ #include "Sdl2Application.h" #include +#include #ifndef CORRADE_TARGET_EMSCRIPTEN #include #else diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index ffdec713a..18ef73224 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/src/Magnum/Platform/Sdl2Application.h @@ -46,7 +46,10 @@ #ifdef CORRADE_TARGET_WINDOWS /* Windows version of SDL2 redefines main(), we don't want that */ #define SDL_MAIN_HANDLED #endif -#include +/* SDL.h includes the world, adding 50k LOC. We don't want that either. */ +#include +#include +#include #include #ifdef CORRADE_TARGET_WINDOWS_RT