mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 04:38:16 +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:
@@ -2,7 +2,11 @@ package libc
|
||||
|
||||
// 7.22 General utilities
|
||||
|
||||
foreign import libc "system:c"
|
||||
when ODIN_OS == "windows" {
|
||||
foreign import libc "system:libucrt.lib"
|
||||
} else {
|
||||
foreign import libc "system:c"
|
||||
}
|
||||
|
||||
when ODIN_OS == "windows" {
|
||||
RAND_MAX :: 0x7fff;
|
||||
@@ -14,7 +18,7 @@ when ODIN_OS == "windows" {
|
||||
}
|
||||
|
||||
MB_CUR_MAX :: #force_inline proc() -> size_t {
|
||||
return ___mb_cur_max_func();
|
||||
return size_t(___mb_cur_max_func());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user