Patched to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 27 May 2015 19:00:56 -0400
changeset 9656 8a4bcbdeba1c
parent 9655 5c55c6567bdc
child 9657 fbc01731d914
Patched to compile on C89 compilers.
src/video/wayland/SDL_waylandevents.c
--- a/src/video/wayland/SDL_waylandevents.c	Wed May 27 18:54:06 2015 -0400
+++ b/src/video/wayland/SDL_waylandevents.c	Wed May 27 19:00:56 2015 -0400
@@ -293,13 +293,14 @@
                       struct wl_array *keys)
 {
     struct SDL_WaylandInput *input = data;
+    SDL_WindowData *window;
 
     if (!surface) {
         /* enter event for a window we've just destroyed */
         return;
     }
  
-    SDL_WindowData *window = wl_surface_get_user_data(surface);
+    window = wl_surface_get_user_data(surface);
 
     input->keyboard_focus = window;
     window->keyboard_device = input;