mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 10:20:05 +00:00
Fix core:c/libc Windows compilation errors by linking to the right libraries.
Fix some name typos and missing types in Windows. Add explicit cast on MB_CUR_MAX
This commit is contained in:
@@ -3,7 +3,11 @@ package libc
|
||||
|
||||
// 7.24 String handling
|
||||
|
||||
foreign import libc "system:c"
|
||||
when ODIN_OS == "windows" {
|
||||
foreign import libc "system:libucrt.lib"
|
||||
} else {
|
||||
foreign import libc "system:c"
|
||||
}
|
||||
|
||||
foreign libc {
|
||||
// 7.24.2 Copying functions
|
||||
|
||||
Reference in New Issue
Block a user