Add support for darwin to core:c/libc

This commit is contained in:
gingerBill committed 2021-11-16 21:19:08 +00:00
1 parent bb7703fcec
commit f09638318f
14 files changed
+116 -8

No files matched your search

+2 -1
View File
@@ -4,10 +4,11 @@ package libc
when ODIN_OS == "windows" {
foreign import libc "system:libucrt.lib"
} else when ODIN_OS == "darwin" {
foreign import libc "system:System.framework"
} else {
foreign import libc "system:c"
}
when ODIN_OS == "windows" {
@(default_calling_convention="c")
foreign libc {