aboutsummaryrefslogtreecommitdiff
path: root/src/c.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/c.zig')
-rw-r--r--src/c.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/c.zig b/src/c.zig
index a551d8e..72bbc04 100644
--- a/src/c.zig
+++ b/src/c.zig
@@ -30,3 +30,9 @@ pub usingnamespace @cImport({
// that can be automatically imported
@cInclude("include/bindings.h");
});
+
+// These are needed because zig currently names translated anonymous unions
+// with a global counter, which makes code unportable.
+// See https://github.com/ifreund/river/issues/17
+pub const wlr_xdg_surface_union = @typeInfo(wlr_xdg_surface).Struct.fields[5].name;
+pub const wlr_input_device_union = @typeInfo(wlr_input_device).Struct.fields[8].name;