diff --git a/base/runtime/core.odin b/base/runtime/core.odin index d51cb28c3..995bc550e 100644 --- a/base/runtime/core.odin +++ b/base/runtime/core.odin @@ -512,7 +512,6 @@ Raw_Quaternion256_Vector_Scalar :: struct {vector: [3]f64, scalar: f64} FreeBSD, OpenBSD, NetBSD, - Haiku, WASI, JS, Orca, @@ -580,7 +579,6 @@ ALL_ODIN_OS_TYPES :: Odin_OS_Types{ .FreeBSD, .OpenBSD, .NetBSD, - .Haiku, .WASI, .JS, .Orca, diff --git a/base/runtime/entry_unix.odin b/base/runtime/entry_unix.odin index e2223d5d6..f63ff3793 100644 --- a/base/runtime/entry_unix.odin +++ b/base/runtime/entry_unix.odin @@ -1,5 +1,5 @@ #+private -#+build linux, darwin, freebsd, openbsd, netbsd, haiku +#+build linux, darwin, freebsd, openbsd, netbsd #+no-instrumentation package runtime diff --git a/base/runtime/heap_allocator_unix.odin b/base/runtime/heap_allocator_unix.odin index f6e7ce39e..bd5dc81b6 100644 --- a/base/runtime/heap_allocator_unix.odin +++ b/base/runtime/heap_allocator_unix.odin @@ -1,4 +1,4 @@ -#+build linux, darwin, freebsd, openbsd, netbsd, haiku +#+build linux, darwin, freebsd, openbsd, netbsd #+private package runtime diff --git a/base/runtime/os_specific_haiku.odin b/base/runtime/os_specific_haiku.odin deleted file mode 100644 index 7e53539a1..000000000 --- a/base/runtime/os_specific_haiku.odin +++ /dev/null @@ -1,33 +0,0 @@ -#+build haiku -#+private -package runtime - -foreign import libc "system:c" - -_HAS_RAND_BYTES :: true - -foreign libc { - @(link_name="write") - _unix_write :: proc(fd: i32, buf: rawptr, size: int) -> int --- - - _errnop :: proc() -> ^i32 --- - - arc4random_buf :: proc(buf: [^]byte, nbytes: uint) --- -} - -_stderr_write :: proc "contextless" (data: []byte) -> (int, _OS_Errno) { - ret := _unix_write(2, raw_data(data), len(data)) - if ret < len(data) { - err := _errnop() - return int(ret), _OS_Errno(err^ if err != nil else 0) - } - return int(ret), 0 -} - -_rand_bytes :: proc "contextless" (dst: []byte) { - arc4random_buf(raw_data(dst), len(dst)) -} - -_exit :: proc "contextless" (code: int) -> ! { - trap() -} \ No newline at end of file