glfw: support compiling with stage2 (-fno-stage1) (#365)

This commit is contained in:
PiergiorgioZagaria 2022-06-24 19:12:45 +02:00 committed by GitHub
parent 786e0d6263
commit 7bb877bd55
Failed to generate hash of commit
7 changed files with 35 additions and 32 deletions

View file

@ -223,7 +223,7 @@ pub const Key = enum(c_int) {
else => unreachable,
};
return if (name_opt) |name|
std.mem.span(name)
std.mem.span(@ptrCast([*:0]const u8, name))
else
null;
}