Fix to compile against the Wayland v1.4 headers
authorGabriel Jacobo
Thu, 16 Jan 2014 11:33:39 -0300
changeset 81139fa492281bc9
parent 8112 257daea8ac11
child 8114 919edd1b6bd0
Fix to compile against the Wayland v1.4 headers
src/video/wayland/SDL_waylanddyn.h
src/video/wayland/SDL_waylandsym.h
     1.1 --- a/src/video/wayland/SDL_waylanddyn.h	Wed Jan 15 11:34:03 2014 -0800
     1.2 +++ b/src/video/wayland/SDL_waylanddyn.h	Thu Jan 16 11:33:39 2014 -0300
     1.3 @@ -78,6 +78,7 @@
     1.4  #define wl_proxy_set_user_data (*WAYLAND_wl_proxy_set_user_data)
     1.5  #define wl_proxy_get_user_data (*WAYLAND_wl_proxy_get_user_data)
     1.6  #define wl_proxy_add_listener (*WAYLAND_wl_proxy_add_listener)
     1.7 +#define wl_proxy_marshal_constructor (*WAYLAND_wl_proxy_marshal_constructor)
     1.8  
     1.9  #define wl_seat_interface (*WAYLAND_wl_seat_interface)
    1.10  #define wl_surface_interface (*WAYLAND_wl_surface_interface)
     2.1 --- a/src/video/wayland/SDL_waylandsym.h	Wed Jan 15 11:34:03 2014 -0800
     2.2 +++ b/src/video/wayland/SDL_waylandsym.h	Thu Jan 16 11:33:39 2014 -0300
     2.3 @@ -51,6 +51,10 @@
     2.4  SDL_WAYLAND_SYM(int, wl_list_empty, (const struct wl_list *))
     2.5  SDL_WAYLAND_SYM(void, wl_list_insert_list, (struct wl_list *, struct wl_list *))
     2.6  
     2.7 +/* These functions are available in Wayland >= 1.4 */
     2.8 +SDL_WAYLAND_MODULE(WAYLAND_CLIENT_1_4)
     2.9 +SDL_WAYLAND_SYM(void, wl_proxy_marshal_constructor, (uint32_t opcode, const struct wl_interface *interface, ...))
    2.10 +
    2.11  SDL_WAYLAND_INTERFACE(wl_seat_interface)
    2.12  SDL_WAYLAND_INTERFACE(wl_surface_interface)
    2.13  SDL_WAYLAND_INTERFACE(wl_shm_pool_interface)