From 88d873ecb971a3f2d0f7420edf9711346f0344a3 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Thu, 28 Mar 2013 14:55:51 +0100 Subject: [PATCH] server: use void* instead of function pointer for wl_object.implementation This is needed to make C++ programs that include wayland-server.h build: C++ does not allow conversions from data pointers to function pointers. --- src/wayland-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland-util.h b/src/wayland-util.h index 257a5d1..4728aaa 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -56,7 +56,7 @@ struct wl_interface { struct wl_object { const struct wl_interface *interface; - void (* const * implementation)(void); + const void *implementation; uint32_t id; }; -- 2.7.4