Browse Source

Add `system:legacy_stdio_definitions.lib` to `.odin` for Windows

gingerBill 2 years ago
parent
commit
35ee7f3cba
1 changed files with 4 additions and 1 deletions
  1. 4 1
      core/c/libc/stdio.odin

+ 4 - 1
core/c/libc/stdio.odin

@@ -1,7 +1,10 @@
 package libc
 package libc
 
 
 when ODIN_OS == .Windows {
 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 {
 } else when ODIN_OS == .Darwin {
 	foreign import libc "system:System.framework"
 	foreign import libc "system:System.framework"
 } else {
 } else {