Skip to content

Commit 5776576

Browse files
committed
Chore: Fix removed APIs in std.Build
[This Zig Commit](ziglang/zig@3d393db) removes `dep.defineCMacro` in favor of `dep.root_module.addCMacro`.
1 parent 194bf41 commit 5776576

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
@@ -54,7 +54,7 @@ pub fn build(b: *std.Build) void {
5454
.optimize = optimize,
5555
});
5656
if (target.result.os.tag == .windows) {
57-
lib.defineCMacro("JPC_API", "extern __declspec(dllexport)");
57+
lib.root_module.addCMacro("JPC_API", "extern __declspec(dllexport)");
5858
}
5959
break :blk lib;
6060
} else b.addStaticLibrary(.{

0 commit comments

Comments
 (0)