|
|
|
|
@ -46,6 +46,14 @@
|
|
|
|
|
#ifdef CORRADE_TARGET_WINDOWS /* Windows version of SDL2 redefines main(), we don't want that */ |
|
|
|
|
#define SDL_MAIN_HANDLED |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifdef CORRADE_TARGET_CLANG_CL |
|
|
|
|
/* SDL does #pragma pack(push,8) and #pragma pack(pop,8) in different headers
|
|
|
|
|
(begin_code.h and end_code.h) and clang-cl doesn't like that, even though it |
|
|
|
|
is completely fine. Silence the warning. */ |
|
|
|
|
#pragma clang diagnostic push |
|
|
|
|
#pragma clang diagnostic ignored "-Wpragma-pack" |
|
|
|
|
#endif |
|
|
|
|
/* SDL.h includes the world, adding 50k LOC. We don't want that either. */ |
|
|
|
|
#include <SDL_keycode.h> |
|
|
|
|
#include <SDL_mouse.h> |
|
|
|
|
@ -57,6 +65,9 @@
|
|
|
|
|
#include <SDL_main.h> /* For SDL_WinRTRunApp */ |
|
|
|
|
#include <wrl.h> /* For the WinMain entrypoint */ |
|
|
|
|
#endif |
|
|
|
|
#ifdef CORRADE_TARGET_CLANG_CL |
|
|
|
|
#pragma clang diagnostic pop |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifndef DOXYGEN_GENERATING_OUTPUT |
|
|
|
|
union SDL_Event; /* for anyEvent() */ |
|
|
|
|
|