Use "strong" linkage on Windows for some glfw procedures

This commit is contained in:
gingerBill
2025-12-15 17:05:55 +00:00
parent 750d99019c
commit 9d6deb9dbf

View File

@@ -212,9 +212,9 @@ foreign glfw {
// 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")
@(linkage="strong" when ODIN_OS == .Windows else "weak")
GetPlatform :: proc() -> c.int ---
@(linkage="weak")
@(linkage="strong" when ODIN_OS == .Windows else "weak")
PlatformSupported :: proc(platform: c.int) -> b32 ---
}