Skip to content

Commit

Permalink
defineCMacro -> root_module.addCMacro
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Dec 20, 2024
1 parent d6d9c08 commit 327928d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 327928d

Please sign in to comment.