src/video/wayland/SDL_waylandmouse.c
changeset 8116 f7c2f71251e5
parent 8104 2e4f1bd21196
child 8135 dd4729596096
     1.1 --- a/src/video/wayland/SDL_waylandmouse.c	Sat Jan 18 11:47:03 2014 -0800
     1.2 +++ b/src/video/wayland/SDL_waylandmouse.c	Mon Jan 20 12:53:44 2014 -0500
     1.3 @@ -19,6 +19,10 @@
     1.4    3. This notice may not be removed or altered from any source distribution.
     1.5  */
     1.6  
     1.7 +#include "../../SDL_internal.h"
     1.8 +
     1.9 +#if SDL_VIDEO_DRIVER_WAYLAND
    1.10 +
    1.11  #ifndef _GNU_SOURCE
    1.12  #define _GNU_SOURCE
    1.13  #endif
    1.14 @@ -31,7 +35,6 @@
    1.15  #include <stdlib.h>
    1.16  #include <limits.h>
    1.17  
    1.18 -#include "../../SDL_internal.h"
    1.19  #include "../SDL_sysvideo.h"
    1.20  
    1.21  #include "SDL_mouse.h"
    1.22 @@ -44,7 +47,6 @@
    1.23  
    1.24  #include "SDL_assert.h"
    1.25  
    1.26 -#if SDL_VIDEO_DRIVER_WAYLAND
    1.27  
    1.28  typedef struct {
    1.29      struct wl_buffer   *buffer;
    1.30 @@ -407,4 +409,4 @@
    1.31      mouse->WarpMouse = NULL;
    1.32      mouse->SetRelativeMouseMode = NULL;
    1.33  }
    1.34 -#endif
    1.35 +#endif  /* SDL_VIDEO_DRIVER_WAYLAND */