Browse Source

Patched to compile on C89 compilers.

Ryan C. Gordon 10 years ago
parent
commit
bea1854cac
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/video/wayland/SDL_waylandevents.c

+ 2 - 1
src/video/wayland/SDL_waylandevents.c

@@ -293,13 +293,14 @@ keyboard_handle_enter(void *data, struct wl_keyboard *keyboard,
                       struct wl_array *keys)
                       struct wl_array *keys)
 {
 {
     struct SDL_WaylandInput *input = data;
     struct SDL_WaylandInput *input = data;
+    SDL_WindowData *window;
 
 
     if (!surface) {
     if (!surface) {
         /* enter event for a window we've just destroyed */
         /* enter event for a window we've just destroyed */
         return;
         return;
     }
     }
  
  
-    SDL_WindowData *window = wl_surface_get_user_data(surface);
+    window = wl_surface_get_user_data(surface);
 
 
     input->keyboard_focus = window;
     input->keyboard_focus = window;
     window->keyboard_device = input;
     window->keyboard_device = input;