Browse Source

Changed foreign imports to now use the System Framework

Platin21 5 năm trước cách đây
mục cha
commit
a71cbd4087
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 2 2
      core/os/os_darwin.odin
  2. 1 1
      core/sys/darwin/mach_darwin.odin

+ 2 - 2
core/os/os_darwin.odin

@@ -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
core/sys/darwin/mach_darwin.odin

@@ -1,6 +1,6 @@
 package darwin;
 
-foreign import "system:pthread"
+foreign import pthread "System.framework"
 
 import "core:c"