wayland: rework extern symbols handling
commit3a4952c80949c71781be8fe00052c3454495bd19
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 24 Mar 2020 18:59:02 +0000 (24 18:59 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 27 Mar 2020 17:08:25 +0000 (27 17:08 +0000)
treea9d00b985eecdc1412791bfc33d697f055d01532
parentb9df6b96dc198b7273e41bd76250c215866a912c
wayland: rework extern symbols handling

With GCC10 -fno-common is the default, which results in
"multiple symbol redefition" errors.

The solutions requires a number of changes:
 - ensure our function pointers have extern notation
 - reshuffle the include order
 - explicitly initialize the function pointers

v2: rebase on top of master (no xdg-shell changes)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/waffle/wayland/wayland_display.c
src/waffle/wayland/wayland_sym.h [new file with mode: 0644]
src/waffle/wayland/wayland_wrapper.c
src/waffle/wayland/wayland_wrapper.h