Fixed warning when building without ibus
authorSam Lantinga <slouken@libsdl.org>
Sat, 21 Jun 2014 17:25:59 -0700
changeset 8894d9cbf79cb236
parent 8893 37a88e757435
child 8895 070b7f655147
Fixed warning when building without ibus
src/video/x11/SDL_x11events.c
src/video/x11/SDL_x11video.h
     1.1 --- a/src/video/x11/SDL_x11events.c	Sat Jun 21 12:50:03 2014 -0700
     1.2 +++ b/src/video/x11/SDL_x11events.c	Sat Jun 21 17:25:59 2014 -0700
     1.3 @@ -571,7 +571,9 @@
     1.4              KeySym keysym = NoSymbol;
     1.5              char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];
     1.6              Status status = 0;
     1.7 +#ifdef SDL_USE_IBUS
     1.8              Bool handled = False;
     1.9 +#endif
    1.10  
    1.11  #ifdef DEBUG_XEVENTS
    1.12              printf("window %p: KeyPress (X11 keycode = 0x%X)\n", data, xevent.xkey.keycode);
     2.1 --- a/src/video/x11/SDL_x11video.h	Sat Jun 21 12:50:03 2014 -0700
     2.2 +++ b/src/video/x11/SDL_x11video.h	Sat Jun 21 17:25:59 2014 -0700
     2.3 @@ -53,13 +53,8 @@
     2.4  #include <X11/extensions/xf86vmode.h>
     2.5  #endif
     2.6  
     2.7 -#ifdef HAVE_DBUS_DBUS_H
     2.8  #include "../../core/linux/SDL_dbus.h"
     2.9 -#endif
    2.10 -
    2.11 -#ifdef HAVE_IBUS_IBUS_H
    2.12  #include "../../core/linux/SDL_ibus.h"
    2.13 -#endif
    2.14  
    2.15  #include "SDL_x11dyn.h"
    2.16