diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 22cde1dc5..23f303840 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -50,6 +50,8 @@ extern "C" { using namespace std; +#define INCLUDE_SYSWM +#include "SDLCompat.h" #if defined(USE_SDL) && defined(LIN) && defined(SDL_VIDEO_DRIVER_X11) SDL_SysWMinfo sdl_wminfo; Atom XA_CLIPBOARD, XA_TARGETS, XA_UTF8_STRING; diff --git a/src/SDLCompat.h b/src/SDLCompat.h index 199285078..309c3915d 100644 --- a/src/SDLCompat.h +++ b/src/SDLCompat.h @@ -6,12 +6,14 @@ #include "SDL.h" #endif +#ifdef INCLUDE_SYSWM #if defined(WIN) || defined(LIN) #ifdef SDL_INC #include #else #include #endif -#endif +#endif // WIN || LIN +#endif // INCLUDE_SYSWM -#endif //USE_SDL \ No newline at end of file +#endif // USE_SDL