mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
darwin: use new wait on address API if possible
This commit is contained in:
@@ -3,6 +3,8 @@ package darwin
|
||||
|
||||
import "core:c"
|
||||
|
||||
foreign import system "system:System.framework"
|
||||
|
||||
Bool :: b8
|
||||
|
||||
RUsage :: struct {
|
||||
@@ -24,3 +26,10 @@ RUsage :: struct {
|
||||
ru_nivcsw: c.long,
|
||||
}
|
||||
|
||||
foreign system {
|
||||
__error :: proc() -> ^i32 ---
|
||||
}
|
||||
|
||||
errno :: #force_inline proc "contextless" () -> i32 {
|
||||
return __error()^
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user