From 35ee7f3cba3d08e76241b5baf8a1c41848749855 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 2 Oct 2022 11:58:17 +0100 Subject: [PATCH] Add `system:legacy_stdio_definitions.lib` to `.odin` for Windows --- core/c/libc/stdio.odin | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/c/libc/stdio.odin b/core/c/libc/stdio.odin index 9b1089d85..1b41c5560 100644 --- a/core/c/libc/stdio.odin +++ b/core/c/libc/stdio.odin @@ -1,7 +1,10 @@ package libc when ODIN_OS == .Windows { - foreign import libc "system:libucrt.lib" + foreign import libc { + "system:libucrt.lib", + "system:legacy_stdio_definitions.lib", + } } else when ODIN_OS == .Darwin { foreign import libc "system:System.framework" } else {