Add NO_X11 option at compiletime to disable X11 specific stuff with SDL driver

just compile with
$ NO_X11=1 make
This commit is contained in:
Thomas Bernard
2018-07-20 12:26:52 +02:00
parent 6ec72f6b71
commit 88430bb92f
4 changed files with 15 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ extern Window X11_window;
#elif defined(__macosx__)
const char * get_paste_board(void);
#endif
#if defined(USE_X11) || defined(SDL_VIDEO_DRIVER_X11)
#if defined(USE_X11) || (defined(SDL_VIDEO_DRIVER_X11) && !defined(NO_X11))
extern char * X11_clipboard;
#endif
@@ -409,7 +409,7 @@ bye:
if (unicode)
*unicode = NULL;
return haiku_get_clipboard();
#elif defined(USE_X11) || defined(__macosx__) || defined(USE_SDL2) || (defined(USE_SDL) && defined(SDL_VIDEO_DRIVER_X11))
#elif defined(USE_X11) || defined(__macosx__) || defined(USE_SDL2) || (defined(USE_SDL) && defined(SDL_VIDEO_DRIVER_X11) && !defined(NO_X11))
if (unicode)
*unicode = NULL;
#if defined(USE_SDL2)