move subsurface-server-protocol.h include out of compositor.h

The subsurface-server-protocol.h header should not be included
by any headers that are part of the SDK since it is not exported.
Otherwise, SDK consumers will break during compilation.

Move this include from compositor.h to compositor.c.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=64537

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
U. Artie Eoff 12 years ago committed by Kristian Høgsberg
parent 7123388b20
commit ec08f33482
  1. 1
      src/compositor.c
  2. 1
      src/compositor.h

@ -56,6 +56,7 @@
#include <wayland-server.h> #include <wayland-server.h>
#include "compositor.h" #include "compositor.h"
#include "subsurface-server-protocol.h"
#include "../shared/os-compatibility.h" #include "../shared/os-compatibility.h"
#include "git-version.h" #include "git-version.h"
#include "version.h" #include "version.h"

@ -35,7 +35,6 @@ extern "C" {
#include "version.h" #include "version.h"
#include "matrix.h" #include "matrix.h"
#include "config-parser.h" #include "config-parser.h"
#include "subsurface-server-protocol.h"
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])

Loading…
Cancel
Save