Merge pull request #747 from Platin21/master

Fixes for MacOS 11 / Big Sur
This commit is contained in:
gingerBill
2020-09-28 12:48:50 +01:00
committed by GitHub
4 changed files with 19 additions and 6 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
package os
foreign import dl "system:dl"
foreign import libc "system:c"
foreign import pthread "system:pthread"
foreign import libc "System.framework"
foreign import pthread "System.framework"
import "core:runtime"
import "core:strings"
+1 -1
View File
@@ -1,6 +1,6 @@
package darwin;
foreign import "system:pthread"
foreign import pthread "System.framework"
import "core:c"
+6 -1
View File
@@ -3,7 +3,12 @@ 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"
} else {
foreign import libc "system:c"
}
@(default_calling_convention="c")
foreign libc {