glfw: fix cimport workaround errors for linux/windows
This commit is contained in:
parent
a945046224
commit
669ef41219
7 changed files with 40 additions and 33 deletions
|
|
@ -1,11 +0,0 @@
|
|||
pub const c = if (@import("builtin").zig_backend == .stage1 or !@import("builtin").target.isDarwin())
|
||||
@cImport({
|
||||
@cDefine("GLFW_INCLUDE_VULKAN", "1");
|
||||
@cInclude("GLFW/glfw3.h");
|
||||
})
|
||||
else
|
||||
// TODO(self-hosted): HACK: workaround https://github.com/ziglang/zig/issues/12483
|
||||
//
|
||||
// Extracted from a build using stage1 from zig-cache/ (`cimport.zig`)
|
||||
// Then find+replace `= ?fn` -> `= ?*const fn`
|
||||
@import("cimport2.zig");
|
||||
Loading…
Add table
Add a link
Reference in a new issue