glfw: support compiling with stage2 (-fno-stage1) (#365)
This commit is contained in:
parent
786e0d6263
commit
7bb877bd55
7 changed files with 35 additions and 32 deletions
|
|
@ -288,7 +288,7 @@ fn initHint(hint: InitHint, value: anytype) void {
|
|||
///
|
||||
/// thread_safety: This function may be called from any thread.
|
||||
pub inline fn getVersionString() [:0]const u8 {
|
||||
return std.mem.span(c.glfwGetVersionString());
|
||||
return std.mem.span(@ptrCast([*:0]const u8, c.glfwGetVersionString()));
|
||||
}
|
||||
|
||||
/// Returns the currently selected platform.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue