From 327928dfb176871503d71aae890b3757f85ab0bb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 20 Dec 2024 12:20:00 +0100 Subject: [PATCH] defineCMacro -> root_module.addCMacro --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 88bbbc6..cd27b68 100644 --- a/build.zig +++ b/build.zig @@ -13,7 +13,7 @@ pub fn build(b: *std.Build) !void { }); dsvpn.linkLibC(); dsvpn.addIncludePath(b.path("include")); - dsvpn.defineCMacro("_GNU_SOURCE", "1"); + dsvpn.root_module.addCMacro("_GNU_SOURCE", "1"); const source_files = &.{ "src/charm.c", "src/os.c", "src/vpn.c" }; dsvpn.addCSourceFiles(.{ .files = source_files }); b.installArtifact(dsvpn);