linux compiling fix

This commit is contained in:
jacob1 2016-10-14 09:30:29 -04:00
parent 9e33906858
commit c1fad5ebf9
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -6,12 +6,14 @@
#include "SDL.h"
#endif
#ifdef INCLUDE_SYSWM
#if defined(WIN) || defined(LIN)
#ifdef SDL_INC
#include <SDL/SDL_syswm.h>
#else
#include <SDL_syswm.h>
#endif
#endif
#endif // WIN || LIN
#endif // INCLUDE_SYSWM
#endif //USE_SDL
#endif // USE_SDL