mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
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>
This commit is contained in:
parent
e3dc9a7af6
commit
6197f32cad
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue