From bea1854cacd505f7d26400cab0e5273365381a04 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 27 May 2015 19:00:56 -0400 Subject: [PATCH] Patched to compile on C89 compilers. --- src/video/wayland/SDL_waylandevents.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index 3288d603314f4..face9d64b42de 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -293,13 +293,14 @@ keyboard_handle_enter(void *data, struct wl_keyboard *keyboard, 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;