diff options
| author | vassvik <mvassvik@gmail.com> | 2021-08-28 13:27:41 +0200 |
|---|---|---|
| committer | vassvik <mvassvik@gmail.com> | 2021-08-28 13:27:41 +0200 |
| commit | 102d080a31f89b5497933ff1622c40df4bcaa6ec (patch) | |
| tree | b34970274e535d04e7122f52b1150b0204d03ff0 /core/c/libc/string.odin | |
| parent | b88e9452685f9e2c0d9dd1ba0609f5158252c45b (diff) | |
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
Diffstat (limited to 'core/c/libc/string.odin')
| -rw-r--r-- | core/c/libc/string.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/c/libc/string.odin b/core/c/libc/string.odin index 9665a8491..d39b4ecb2 100644 --- a/core/c/libc/string.odin +++ b/core/c/libc/string.odin @@ -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 |