Patched to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 27 May 2015 19:00:56 -0400
changeset 96568a4bcbdeba1c
parent 9655 5c55c6567bdc
child 9657 fbc01731d914
Patched to compile on C89 compilers.
src/video/wayland/SDL_waylandevents.c
     1.1 --- a/src/video/wayland/SDL_waylandevents.c	Wed May 27 18:54:06 2015 -0400
     1.2 +++ b/src/video/wayland/SDL_waylandevents.c	Wed May 27 19:00:56 2015 -0400
     1.3 @@ -293,13 +293,14 @@
     1.4                        struct wl_array *keys)
     1.5  {
     1.6      struct SDL_WaylandInput *input = data;
     1.7 +    SDL_WindowData *window;
     1.8  
     1.9      if (!surface) {
    1.10          /* enter event for a window we've just destroyed */
    1.11          return;
    1.12      }
    1.13   
    1.14 -    SDL_WindowData *window = wl_surface_get_user_data(surface);
    1.15 +    window = wl_surface_get_user_data(surface);
    1.16  
    1.17      input->keyboard_focus = window;
    1.18      window->keyboard_device = input;