mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
Adds when statement for framework include
This commit is contained in:
@@ -3,7 +3,14 @@ package time
|
|||||||
|
|
||||||
IS_SUPPORTED :: true; // NOTE: Times on Darwin are UTC.
|
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")
|
@(default_calling_convention="c")
|
||||||
foreign libc {
|
foreign libc {
|
||||||
|
|||||||
Reference in New Issue
Block a user