mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 06:37:55 +08:00
61dbead6fc
Concerning SDL2 includes and how do they work. It is seems what the common practice is to append 'SDL2' include path to the compiler options and then do plain #include "SDL.h". While it works in cmake based projects it won't pass in msbuild ones. This patch changes #include to 'global' style <SDL2/SDL.h> and solves the problem.
21 lines
662 B
Diff
21 lines
662 B
Diff
diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h
|
|
index 99c3174..311b2c1 100644
|
|
--- a/src/Magnum/Platform/Sdl2Application.h
|
|
+++ b/src/Magnum/Platform/Sdl2Application.h
|
|
@@ -42,11 +42,11 @@
|
|
#ifdef CORRADE_TARGET_WINDOWS /* Windows version of SDL2 redefines main(), we don't want that */
|
|
#define SDL_MAIN_HANDLED
|
|
#endif
|
|
-#include <SDL.h>
|
|
-#include <SDL_scancode.h>
|
|
+#include <SDL2/SDL.h>
|
|
+#include <SDL2/SDL_scancode.h>
|
|
|
|
#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
|
|
|
|
|