mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Fix types for BSD
This commit is contained in:
@@ -305,7 +305,7 @@ is_path_separator :: proc(r: rune) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_last_error :: proc "contextless" () -> int {
|
get_last_error :: proc "contextless" () -> int {
|
||||||
return __errno_location()^
|
return int(__errno_location()^)
|
||||||
}
|
}
|
||||||
|
|
||||||
open :: proc(path: string, flags: int = O_RDONLY, mode: int = 0) -> (Handle, Errno) {
|
open :: proc(path: string, flags: int = O_RDONLY, mode: int = 0) -> (Handle, Errno) {
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ is_path_separator :: proc(r: rune) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_last_error :: proc "contextless" () -> int {
|
get_last_error :: proc "contextless" () -> int {
|
||||||
return __error()^
|
return int(__error()^)
|
||||||
}
|
}
|
||||||
|
|
||||||
fork :: proc() -> (Pid, Errno) {
|
fork :: proc() -> (Pid, Errno) {
|
||||||
|
|||||||
Reference in New Issue
Block a user