Skip to content

Commit 327928d

Browse files
committed
defineCMacro -> root_module.addCMacro
1 parent d6d9c08 commit 327928d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn build(b: *std.Build) !void {
1313
});
1414
dsvpn.linkLibC();
1515
dsvpn.addIncludePath(b.path("include"));
16-
dsvpn.defineCMacro("_GNU_SOURCE", "1");
16+
dsvpn.root_module.addCMacro("_GNU_SOURCE", "1");
1717
const source_files = &.{ "src/charm.c", "src/os.c", "src/vpn.c" };
1818
dsvpn.addCSourceFiles(.{ .files = source_files });
1919
b.installArtifact(dsvpn);

0 commit comments

Comments
 (0)