Skip to content

Commit

Permalink
Chore: Fix std.Build deprecated APIs and bump zig master (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcat-42 authored Jan 2, 2025
1 parent 4e15633 commit c0f1085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .zigversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.0-dev.1911+3bf89f55c
0.14.0-dev.2563+af5e73172
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
if (target.result.os.tag == .windows) {
lib.defineCMacro("_GLFW_BUILD_DLL", null);
lib.root_module.addCMacro("_GLFW_BUILD_DLL", "");
}
break :blk lib;
} else b.addStaticLibrary(.{
Expand Down Expand Up @@ -188,7 +188,7 @@ pub fn build(b: *std.Build) void {
},
.flags = &.{},
});
glfw.defineCMacro("_GLFW_X11", "1");
glfw.root_module.addCMacro("_GLFW_X11", "1");
glfw.linkSystemLibrary("X11");
}
if (options.enable_wayland) {
Expand All @@ -200,7 +200,7 @@ pub fn build(b: *std.Build) void {
},
.flags = &.{},
});
glfw.defineCMacro("_GLFW_WAYLAND", "1");
glfw.root_module.addCMacro("_GLFW_WAYLAND", "1");
}
},
else => {},
Expand Down

0 comments on commit c0f1085

Please sign in to comment.