Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix to compile against the Wayland v1.4 headers
  • Loading branch information
gabomdq committed Jan 16, 2014
1 parent 12e7fdc commit 838e76c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/video/wayland/SDL_waylanddyn.h
Expand Up @@ -78,6 +78,7 @@ void SDL_WAYLAND_UnloadSymbols(void);
#define wl_proxy_set_user_data (*WAYLAND_wl_proxy_set_user_data)
#define wl_proxy_get_user_data (*WAYLAND_wl_proxy_get_user_data)
#define wl_proxy_add_listener (*WAYLAND_wl_proxy_add_listener)
#define wl_proxy_marshal_constructor (*WAYLAND_wl_proxy_marshal_constructor)

#define wl_seat_interface (*WAYLAND_wl_seat_interface)
#define wl_surface_interface (*WAYLAND_wl_surface_interface)
Expand Down
4 changes: 4 additions & 0 deletions src/video/wayland/SDL_waylandsym.h
Expand Up @@ -51,6 +51,10 @@ SDL_WAYLAND_SYM(int, wl_list_length, (const struct wl_list *))
SDL_WAYLAND_SYM(int, wl_list_empty, (const struct wl_list *))
SDL_WAYLAND_SYM(void, wl_list_insert_list, (struct wl_list *, struct wl_list *))

/* These functions are available in Wayland >= 1.4 */
SDL_WAYLAND_MODULE(WAYLAND_CLIENT_1_4)
SDL_WAYLAND_SYM(void, wl_proxy_marshal_constructor, (uint32_t opcode, const struct wl_interface *interface, ...))

SDL_WAYLAND_INTERFACE(wl_seat_interface)
SDL_WAYLAND_INTERFACE(wl_surface_interface)
SDL_WAYLAND_INTERFACE(wl_shm_pool_interface)
Expand Down

0 comments on commit 838e76c

Please sign in to comment.