mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2025-01-08 06:59:49 +01:00
client: drop wl_resource typedef
this conflicts with some custom wl extension headers todo: stop using 'wl_resource' in client code altogether...
This commit is contained in:
parent
4d7367b6ee
commit
c0c13f07a0
1 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ void parseHeader() {
|
|||
|
||||
)#",
|
||||
(clientCode ? "#include <wayland-client.h>" : "#include <wayland-server.h>"),
|
||||
(clientCode ? "struct wl_proxy;\ntypedef wl_proxy wl_resource;" : "struct wl_client;\nstruct wl_resource;"));
|
||||
(clientCode ? "struct wl_proxy;\n#define wl_resource wl_proxy" : "struct wl_client;\nstruct wl_resource;"));
|
||||
|
||||
// parse all enums
|
||||
if (!waylandEnums) {
|
||||
|
@ -503,7 +503,7 @@ class {} {{
|
|||
HEADER += "\n};\n\n";
|
||||
}
|
||||
|
||||
HEADER += "\n\n#undef F\n";
|
||||
HEADER += "\n\n#undef F\n#undef wl_resource\n";
|
||||
}
|
||||
|
||||
void parseSource() {
|
||||
|
|
Loading…
Reference in a new issue