mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 16:48:18 +00:00
improve WGPU / GLFW / Wayland story by weak linking and adjusting docs
This commit is contained in:
Vendored
+5
@@ -197,7 +197,12 @@ foreign glfw {
|
||||
|
||||
SetErrorCallback :: proc(cbfun: ErrorProc) -> ErrorProc ---
|
||||
|
||||
// Functions added in 3.4, Linux links against system glfw so we define these as weak to be able
|
||||
// to check at runtime if they are available.
|
||||
|
||||
@(linkage="weak")
|
||||
GetPlatform :: proc() -> c.int ---
|
||||
@(linkage="weak")
|
||||
PlatformSupported :: proc(platform: c.int) -> b32 ---
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user