mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
Update os_haiku.odin
This commit is contained in:
@@ -424,5 +424,7 @@ get_env :: proc(key: string, allocator := context.allocator) -> (value: string)
|
|||||||
|
|
||||||
@(private)
|
@(private)
|
||||||
_processor_core_count :: proc() -> int {
|
_processor_core_count :: proc() -> int {
|
||||||
return int(_sysconf(_SC_NPROCESSORS_ONLN))
|
info: haiku.system_info
|
||||||
|
haiku.get_system_info(&info)
|
||||||
|
return int(info.cpu_count)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user