aboutsummaryrefslogtreecommitdiff
path: root/core/time
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-08-16 23:18:59 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-08-16 23:18:59 +0200
commite8933e43ecffe1a0cec81e102f077970687a43a2 (patch)
treedec5874277c47953d1261011bf4fc1dd48077064 /core/time
parent970dc7a1f26cbb2badb13ce22bcc51c6055788ef (diff)
add haiku to unsupported time file
Diffstat (limited to 'core/time')
-rw-r--r--core/time/time_freestanding.odin19
-rw-r--r--core/time/time_other.odin (renamed from core/time/time_orca.odin)10
-rw-r--r--core/time/time_unix.odin2
3 files changed, 10 insertions, 21 deletions
diff --git a/core/time/time_freestanding.odin b/core/time/time_freestanding.odin
deleted file mode 100644
index 7c67cc5e8..000000000
--- a/core/time/time_freestanding.odin
+++ /dev/null
@@ -1,19 +0,0 @@
-//+private
-//+build freestanding
-package time
-
-_IS_SUPPORTED :: false
-
-_now :: proc "contextless" () -> Time {
- return {}
-}
-
-_sleep :: proc "contextless" (d: Duration) {
-}
-
-_tick_now :: proc "contextless" () -> Tick {
- return {}
-}
-
-_yield :: proc "contextless" () {
-}
diff --git a/core/time/time_orca.odin b/core/time/time_other.odin
index d222c8247..dd3d39644 100644
--- a/core/time/time_orca.odin
+++ b/core/time/time_other.odin
@@ -1,5 +1,13 @@
//+private
-//+build orca
+//+build !essence
+//+build !js
+//+build !linux
+//+build !openbsd
+//+build !freebsd
+//+build !netbsd
+//+build !darwin
+//+build !wasi
+//+build !windows
package time
_IS_SUPPORTED :: false
diff --git a/core/time/time_unix.odin b/core/time/time_unix.odin
index 61543b99c..0d7a43aba 100644
--- a/core/time/time_unix.odin
+++ b/core/time/time_unix.odin
@@ -1,5 +1,5 @@
//+private
-//+build darwin, freebsd, openbsd, netbsd, haiku
+//+build darwin, freebsd, openbsd, netbsd
package time
import "core:sys/posix"