wayland: Fix building with -fno-common (which is now the default in GCC 10).
authorRyan C. Gordon <icculus@icculus.org>
Mon, 10 Feb 2020 23:48:06 -0500
changeset 1350102c8da593c73
parent 13500 646925aa63bf
child 13502 607750a641d7
wayland: Fix building with -fno-common (which is now the default in GCC 10).

Fixes Bugzilla #4957.
src/video/wayland/SDL_waylanddyn.h
     1.1 --- a/src/video/wayland/SDL_waylanddyn.h	Mon Feb 10 13:59:05 2020 -0800
     1.2 +++ b/src/video/wayland/SDL_waylanddyn.h	Mon Feb 10 23:48:06 2020 -0500
     1.3 @@ -59,6 +59,9 @@
     1.4  }
     1.5  #endif
     1.6  
     1.7 +/* Must be included before our #defines, see Bugzilla #4957 */
     1.8 +#include "wayland-client-core.h"
     1.9 +
    1.10  #ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
    1.11  
    1.12  #ifdef _WAYLAND_CLIENT_H
    1.13 @@ -99,7 +102,6 @@
    1.14  
    1.15  #endif /* SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC */
    1.16  
    1.17 -#include "wayland-client-core.h"
    1.18  #include "wayland-client-protocol.h"
    1.19  #include "wayland-egl.h"
    1.20