diff options
| author | Platin21 <armin.hamar@icloud.com> | 2020-09-27 22:08:33 +0300 |
|---|---|---|
| committer | Platin21 <armin.hamar@icloud.com> | 2020-09-27 22:08:33 +0300 |
| commit | f7e40b8572dd51c308ceb216f5bbca3142cf4cc0 (patch) | |
| tree | ca2bac14715dd9a7ecbfe7cf68f56fb734e835b0 | |
| parent | a71cbd4087cd7b29350a313f486c1db79867ca69 (diff) | |
Adds when statement for framework include
| -rw-r--r-- | core/time/time_unix.odin | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/time/time_unix.odin b/core/time/time_unix.odin index 3acc636e1..995355ad5 100644 --- a/core/time/time_unix.odin +++ b/core/time/time_unix.odin @@ -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 { |