Patch to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 04 Jan 2016 16:36:42 -0500
changeset 1000761058b90b9ae
parent 10006 5229da175b57
child 10008 fb4e35d0d523
Patch to compile on C89 compilers.
src/video/x11/SDL_x11window.c
     1.1 --- a/src/video/x11/SDL_x11window.c	Mon Jan 04 16:25:27 2016 -0500
     1.2 +++ b/src/video/x11/SDL_x11window.c	Mon Jan 04 16:36:42 2016 -0500
     1.3 @@ -944,9 +944,10 @@
     1.4      Atom _NET_ACTIVE_WINDOW = data->videodata->_NET_ACTIVE_WINDOW;
     1.5  
     1.6      if (X11_IsWindowMapped(_this, window)) {
     1.7 +        XEvent e;
     1.8 +
     1.9          SDL_assert(data->user_time != 0);  /* should be set by _some_ event by now. */
    1.10          /*printf("SDL Window %p: sending _NET_ACTIVE_WINDOW with timestamp %lu\n", window, data->user_time);*/
    1.11 -        XEvent e;
    1.12  
    1.13          SDL_zero(e);
    1.14          e.xany.type = ClientMessage;