add null-impl for tsc_frequency for alt-platforms
This commit is contained in:
1 parent
0674b1b6ee
commit
afaa5f2deb
3 files changed
+6
-14
No files matched your search
@@ -56,6 +56,12 @@ when ODIN_ARCH == .amd64 {
|
||||
}
|
||||
}
|
||||
|
||||
when ODIN_OS != .Darwin && ODIN_OS != .Linux && ODIN_OS != .FreeBSD {
|
||||
_get_tsc_frequency :: proc "contextless" () -> (u64, bool) {
|
||||
return 0, false
|
||||
}
|
||||
}
|
||||
|
||||
has_invariant_tsc :: proc "contextless" () -> bool {
|
||||
when ODIN_ARCH == .amd64 {
|
||||
return x86_has_invariant_tsc()
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
//+private
|
||||
//+build openbsd
|
||||
package time
|
||||
|
||||
_get_tsc_frequency :: proc "contextless" () -> (u64, bool) {
|
||||
return 0, false
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
//+private
|
||||
//+build windows
|
||||
package time
|
||||
|
||||
_get_tsc_frequency :: proc "contextless" () -> (u64, bool) {
|
||||
return 0, false
|
||||
}
|
||||
Reference in new issue
Block a user