diff options
| -rw-r--r-- | build.zig | 2 | ||||
| -rw-r--r-- | include/bindings.c (renamed from include/render.c) | 0 | ||||
| -rw-r--r-- | include/bindings.h (renamed from include/render.h) | 7 | ||||
| -rw-r--r-- | src/c.zig | 2 |
4 files changed, 6 insertions, 5 deletions
@@ -38,7 +38,7 @@ fn addDeps(exe: *std.build.LibExeObjStep, protocol_step: *std.build.Step) void { exe.step.dependOn(protocol_step); exe.addIncludeDir("protocol"); - exe.addCSourceFile("include/render.c", &[_][]const u8{"-std=c99"}); + exe.addCSourceFile("include/bindings.c", &[_][]const u8{"-std=c99"}); exe.addIncludeDir("."); exe.linkLibC(); diff --git a/include/render.c b/include/bindings.c index 0eaf76d..0eaf76d 100644 --- a/include/render.c +++ b/include/bindings.c diff --git a/include/render.h b/include/bindings.h index 2da8f6e..d8b9358 100644 --- a/include/render.h +++ b/include/bindings.h @@ -1,7 +1,8 @@ -#ifndef RIVER_RENDER_H -#define RIVER_RENDER_H +#ifndef RIVER_BINDINGS_H +#define RIVER_BINDINGS_H #include <wlr/backend/session.h> + /* * This header is needed since zig cannot yet translate flexible arrays. * See https://github.com/ziglang/zig/issues/4775 @@ -31,4 +32,4 @@ struct wlr_backend *river_wlr_noop_backend_create(struct wl_display *display); struct wlr_output *river_wlr_noop_add_output(struct wlr_backend *backend); bool river_wlr_output_is_noop(struct wlr_output *output); -#endif +#endif // RIVER_BINDINGS_H @@ -26,5 +26,5 @@ pub usingnamespace @cImport({ // Contains a subset of functions from wlr/backend.h and wlr/render/wlr_renderer.h // that can be automatically imported - @cInclude("include/render.h"); + @cInclude("include/bindings.h"); }); |
