summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Ceier <mceier+wayland@gmail.com>2014-12-15 12:48:38 +0100
committerDaniel Stone <daniels@collabora.com>2015-01-27 11:18:36 +0000
commit6197f32cadc82d62a3641385098fe5ffebc147d6 (patch)
treeb6dd98fc8bf3a29ffd0371ea249d317679cb86ca
parente3dc9a7af6f8f88ff7503bc3a70178e47802868d (diff)
downloadwayland-6197f32cadc82d62a3641385098fe5ffebc147d6.tar.gz
scanner: Fix header generation for server protocols
Server protocols headers should include wayland-server.h, instead of wayland-util.h. Otherwise they're not useable with C++ compiler unless wayland-server.h was included earlier. Signed-off-by: Mariusz Ceier <mceier+wayland@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
-rw-r--r--src/scanner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.c b/src/scanner.c
index ca03c57..1f1e59a 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1002,7 +1002,7 @@ emit_header(struct protocol *protocol, enum side side)
"struct wl_resource;\n\n",
protocol->uppercase_name, s,
protocol->uppercase_name, s,
- (side == SERVER) ? "wayland-util.h" : "wayland-client.h");
+ (side == SERVER) ? "wayland-server.h" : "wayland-client.h");
wl_list_for_each(i, &protocol->interface_list, link)
printf("struct %s;\n", i->name);