Skip to content

Commit

Permalink
- Update libxev dependency
Browse files Browse the repository at this point in the history
- Fixup macos compile error
  • Loading branch information
kcbanner committed Oct 31, 2023
1 parent 073e5dc commit 690e008
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
.dependencies = .{
// Zig libs
.libxev = .{
.url = "https://github.com/kcbanner/libxev/archive/d71ddeb19c6697875c2e0e68a49d04c05bc26199.tar.gz",
.hash = "1220a26265c30f5677ce28daf04afbd7a6ef5a17f5d3b5506f767fdfee7dc4225d2b",
.url = "https://github.com/mitchellh/libxev/archive/1b46c2d6f32754a3029d1863275dd0f877163831.tar.gz",
.hash = "12208dc0796bffa6ea9edb60193108e34f835f35fc152e853717aca2b13ba17f3be2",
},
.mach_glfw = .{
.url = "https://github.com/hexops/mach-glfw/archive/16dc95cc7f74ebbbdd848d9a2c3cc4afc5717708.tar.gz",
Expand Down
6 changes: 4 additions & 2 deletions src/os/locale.zig
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ pub fn ensureLocale(alloc: std.mem.Allocator) !void {
// process.
if (comptime builtin.target.isDarwin()) {
// Set the lang if it is not set or if its empty.
if (lang.len == 0) {
setLangFromCocoa();
if (lang) |l| {
if (l.len == 0) {
setLangFromCocoa();
}
}
}

Expand Down

0 comments on commit 690e008

Please sign in to comment.