Fix sub-compositor duplicated symbols

With moving wl_subcompositor to core wayland, we have duplicate definitions
in the headers we include from wayland and the ones we generate.  Use the
WL_SUBCOMPOSITOR_ERROR_ENUM #define to conditionally include the
subsurface headers we generate.
This commit is contained in:
Kristian Høgsberg 2014-05-12 21:34:18 -07:00
parent 5e3ff49c7d
commit 7076a41f92
3 changed files with 11 additions and 2 deletions

View File

@ -28,7 +28,10 @@
#include <cairo.h>
#include "../shared/config-parser.h"
#include "../shared/zalloc.h"
#ifndef WL_SUBCOMPOSITOR_ERROR_ENUM
#include "subsurface-client-protocol.h"
#endif
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])

View File

@ -53,11 +53,14 @@
#endif
#include "compositor.h"
#include "subsurface-server-protocol.h"
#include "../shared/os-compatibility.h"
#include "git-version.h"
#include "version.h"
#ifndef WL_SUBCOMPOSITOR_ERROR_ENUM
#include "subsurface-server-protocol.h"
#endif
static struct wl_list child_process_list;
static struct weston_compositor *segv_compositor;

View File

@ -23,9 +23,12 @@
#include <string.h>
#include "weston-test-client-helper.h"
#include "subsurface-client-protocol.h"
#include <stdio.h>
#ifndef WL_SUBCOMPOSITOR_ERROR_ENUM
#include "subsurface-client-protocol.h"
#endif
#define NUM_SUBSURFACES 3
struct compound_surface {