Adds when statement for framework include

This commit is contained in:
Platin21
2020-09-27 22:08:33 +03:00
parent a71cbd4087
commit f7e40b8572

View File

@@ -3,7 +3,14 @@ package time
IS_SUPPORTED :: true; // NOTE: Times on Darwin are UTC.
foreign import libc "system:c"
when ODIN_OS == "darwin" {
foreign import libc "System.framework"
}
when ODIN_OS != "darwin" {
foreign import libc "system:c"
}
@(default_calling_convention="c")
foreign libc {