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:
vassvik
2021-08-28 13:27:41 +02:00
parent b88e945268
commit 102d080a31
14 changed files with 73 additions and 17 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
package libc
foreign import libc "system:c"
when ODIN_OS == "windows" {
foreign import libc "system:libucrt.lib"
} else {
foreign import libc "system:c"
}
// 7.21 Input/output