From 57ab110f43efd2681fd61872820ac942b8f5bcd3 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 21 Mar 2020 16:55:42 +0100 Subject: Hack around @cImport() not handling flexible arrays --- build.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 48eb612..f4303ce 100644 --- a/build.zig +++ b/build.zig @@ -17,6 +17,8 @@ pub fn build(b: *Builder) void { exe.addIncludeDir("protocol"); exe.linkLibC(); exe.addIncludeDir("/usr/include/pixman-1"); + exe.addCSourceFile("include/render.c", &[_][]const u8{"-std=c99"}); + exe.addIncludeDir("."); //exe.linkSystemLibrary("pixman"); exe.linkSystemLibrary("wayland-server"); exe.linkSystemLibrary("wlroots"); -- cgit v1.2.3