2019-03-20 04:08:18 +08:00
|
|
|
diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp
|
2020-03-28 11:37:33 +08:00
|
|
|
index 276c7ee55..90c52f3cb 100644
|
2019-03-20 04:08:18 +08:00
|
|
|
--- a/src/Magnum/Platform/Sdl2Application.cpp
|
|
|
|
+++ b/src/Magnum/Platform/Sdl2Application.cpp
|
2020-03-28 11:37:33 +08:00
|
|
|
@@ -34,7 +34,7 @@
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wpragma-pack"
|
|
|
|
#endif
|
2019-03-20 04:08:18 +08:00
|
|
|
-#include <SDL.h>
|
|
|
|
+#include <SDL2/SDL.h>
|
2020-03-28 11:37:33 +08:00
|
|
|
#ifdef CORRADE_TARGET_CLANG_CL
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
#endif
|
2017-06-13 17:35:54 +08:00
|
|
|
diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h
|
2020-03-28 11:37:33 +08:00
|
|
|
index b2426d513..176729fdb 100644
|
2017-06-13 17:35:54 +08:00
|
|
|
--- a/src/Magnum/Platform/Sdl2Application.h
|
|
|
|
+++ b/src/Magnum/Platform/Sdl2Application.h
|
2020-03-28 11:37:33 +08:00
|
|
|
@@ -57,11 +57,11 @@
|
|
|
|
#pragma clang diagnostic ignored "-Wpragma-pack"
|
2017-06-13 17:35:54 +08:00
|
|
|
#endif
|
2019-03-20 04:08:18 +08:00
|
|
|
/* SDL.h includes the world, adding 50k LOC. We don't want that either. */
|
|
|
|
-#include <SDL_keycode.h>
|
|
|
|
-#include <SDL_mouse.h>
|
2020-03-28 11:37:33 +08:00
|
|
|
-#include <SDL_version.h> /* huh, why is this not pulled in implicitly?! */
|
2019-03-20 04:08:18 +08:00
|
|
|
-#include <SDL_video.h>
|
2017-06-13 17:35:54 +08:00
|
|
|
-#include <SDL_scancode.h>
|
2019-03-20 04:08:18 +08:00
|
|
|
+#include <SDL2/SDL_keycode.h>
|
|
|
|
+#include <SDL2/SDL_mouse.h>
|
2020-03-28 11:37:33 +08:00
|
|
|
+#include <SDL2/SDL_version.h> /* huh, why is this not pulled in implicitly?! */
|
2019-03-20 04:08:18 +08:00
|
|
|
+#include <SDL2/SDL_video.h>
|
2017-06-13 17:35:54 +08:00
|
|
|
+#include <SDL2/SDL_scancode.h>
|
2020-03-28 11:37:33 +08:00
|
|
|
|
|
|
|
#ifdef CORRADE_TARGET_IOS
|
|
|
|
/* Including SDL_main.h unconditionally would mean it'd override Corrade::Main
|
|
|
|
@@ -74,7 +74,7 @@
|
|
|
|
#endif
|
|
|
|
|
2017-06-13 17:35:54 +08:00
|
|
|
#ifdef CORRADE_TARGET_WINDOWS_RT
|
|
|
|
-#include <SDL_main.h> /* For SDL_WinRTRunApp */
|
|
|
|
+#include <SDL2/SDL_main.h> /* For SDL_WinRTRunApp */
|
|
|
|
#include <wrl.h> /* For the WinMain entrypoint */
|
|
|
|
#endif
|
2020-03-28 11:37:33 +08:00
|
|
|
#ifdef CORRADE_TARGET_CLANG_CL
|