Skip to content

Commit 84a6b4f

Browse files
authored
chore/fix deprecated build apis (#2)
1 parent 696f568 commit 84a6b4f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.zigversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.14.0-dev.1911+3bf89f55c
1+
0.14.0-dev.2563+af5e73172

build.zig

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ pub fn build(b: *std.Build) void {
3939
});
4040

4141
if (target.result.os.tag == .windows) {
42-
lib.defineCMacro("PAR_SHAPES_API", "__declspec(dllexport)");
43-
lib.defineCMacro("CGLTF_API", "__declspec(dllexport)");
44-
lib.defineCMacro("MESHOPTIMIZER_API", "__declspec(dllexport)");
45-
lib.defineCMacro("ZMESH_API", "__declspec(dllexport)");
42+
lib.root_module.addCMacro("PAR_SHAPES_API", "__declspec(dllexport)");
43+
lib.root_module.addCMacro("CGLTF_API", "__declspec(dllexport)");
44+
lib.root_module.addCMacro("MESHOPTIMIZER_API", "__declspec(dllexport)");
45+
lib.root_module.addCMacro("ZMESH_API", "__declspec(dllexport)");
4646
}
4747

4848
break :blk lib;

0 commit comments

Comments
 (0)