Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wayland: Support building with static wayland/libdecor (fix libsdl-or…
…g#4543) When wayland is not dynamically linked (--enable-wayland-shared=no), libdecor is always also statically linked (it's treated as part of Wayland in SDL_waylanddyn.{c,h} and SDL_waylandsym.h). However, it doesn't include libdecor.h unless SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC is set, so it fails to build at all unless Wayland is dynamically loaded. This is @sezero's suggested fix of simply moving the libdecor.h include outside the #ifdef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC block: libsdl-org#4543 (comment) Note that this doesn't fix any of the underlying issues of libdecor being treated as part of wayland, it just fixes the build.
- Loading branch information