Kaynağa Gözat

wayland: Fix building without Vulkan support

Ethan Lee 4 yıl önce
ebeveyn
işleme
124405a0bc
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      src/video/wayland/SDL_waylandvideo.h

+ 3 - 0
src/video/wayland/SDL_waylandvideo.h

@@ -92,6 +92,9 @@ typedef struct {
     SDL_bool done;
     SDL_bool done;
 } SDL_WaylandOutputData;
 } SDL_WaylandOutputData;
 
 
+/* Needed to get wl_surface declaration, fixes GitHub#4594 */
+#include "SDL_waylanddyn.h"
+
 extern void SDL_WAYLAND_register_surface(struct wl_surface *surface);
 extern void SDL_WAYLAND_register_surface(struct wl_surface *surface);
 extern void SDL_WAYLAND_register_output(struct wl_output *output);
 extern void SDL_WAYLAND_register_output(struct wl_output *output);
 extern SDL_bool SDL_WAYLAND_own_surface(struct wl_surface *surface);
 extern SDL_bool SDL_WAYLAND_own_surface(struct wl_surface *surface);