Skip to content

Commit

Permalink
wayland: Fix building with -fno-common (which is now the default in G…
Browse files Browse the repository at this point in the history
…CC 10).

Fixes Bugzilla #4957.
  • Loading branch information
icculus committed Feb 11, 2020
1 parent d55f47d commit 4378fcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/wayland/SDL_waylanddyn.h
Expand Up @@ -59,6 +59,9 @@ void SDL_WAYLAND_UnloadSymbols(void);
}
#endif

/* Must be included before our #defines, see Bugzilla #4957 */
#include "wayland-client-core.h"

#ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC

#ifdef _WAYLAND_CLIENT_H
Expand Down Expand Up @@ -99,7 +102,6 @@ void SDL_WAYLAND_UnloadSymbols(void);

#endif /* SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC */

#include "wayland-client-core.h"
#include "wayland-client-protocol.h"
#include "wayland-egl.h"

Expand Down

0 comments on commit 4378fcd

Please sign in to comment.