From cf96c9caf3770f99ad0d9568ac4b76dd0abe5a2c Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 20 Mar 2012 13:50:42 +0000 Subject: [PATCH] include standalone cogl-wayland-server/client headers Because the wayland-server-protocol.h header includes symbols that collide with wayland-client-protocol.h Cogl now provides top level and headers so that applications can ensure they only include one of the wayland protocol headers in a particular compilation unit. This updates clutter accordingly to include those headers. Reviewed-by: Neil Roberts Reviewed-by: Emmanuele Bassi --- clutter/clutter-backend.c | 2 ++ clutter/wayland/clutter-backend-wayland.c | 1 + clutter/wayland/clutter-stage-wayland.c | 2 ++ clutter/wayland/clutter-wayland-surface.c | 3 +-- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c index 509f42300..0bfe4e349 100644 --- a/clutter/clutter-backend.c +++ b/clutter/clutter-backend.c @@ -81,7 +81,9 @@ #endif #ifdef HAVE_CLUTTER_WAYLAND_COMPOSITOR +#include #include +#include "wayland/clutter-wayland-compositor.h" #endif G_DEFINE_ABSTRACT_TYPE (ClutterBackend, clutter_backend, G_TYPE_OBJECT); diff --git a/clutter/wayland/clutter-backend-wayland.c b/clutter/wayland/clutter-backend-wayland.c index db5613c68..6db22c901 100644 --- a/clutter/wayland/clutter-backend-wayland.c +++ b/clutter/wayland/clutter-backend-wayland.c @@ -51,6 +51,7 @@ #include #include +#include #define clutter_backend_wayland_get_type _clutter_backend_wayland_get_type diff --git a/clutter/wayland/clutter-stage-wayland.c b/clutter/wayland/clutter-stage-wayland.c index f5cb4f825..9cd83d61e 100644 --- a/clutter/wayland/clutter-stage-wayland.c +++ b/clutter/wayland/clutter-stage-wayland.c @@ -30,12 +30,14 @@ #include +#include "clutter-wayland.h" #include "clutter-stage-wayland.h" #include "clutter-backend-wayland.h" #include "clutter-stage-window.h" #include "clutter-stage-private.h" #include "clutter-event-private.h" #include +#include static ClutterStageWindowIface *clutter_stage_window_parent_iface = NULL; diff --git a/clutter/wayland/clutter-wayland-surface.c b/clutter/wayland/clutter-wayland-surface.c index a86f04e32..b128782f1 100644 --- a/clutter/wayland/clutter-wayland-surface.c +++ b/clutter/wayland/clutter-wayland-surface.c @@ -48,8 +48,7 @@ #include "clutter-backend.h" #include - -#include +#include enum {