Skip to content

Commit

Permalink
cpuinfo: fix compilation for 32bit Haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
alaviss committed Sep 25, 2018
1 parent 548fc77 commit d6b4e04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pure/concurrency/cpuinfo.nim
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ when defined(haiku):
SystemInfo {.importc: "system_info", bycopy.} = object
cpuCount {.importc: "cpu_count".}: uint32

proc getSystemInfo(info: ptr SystemInfo): int32 {.importc: "get_system_info".}
proc getSystemInfo(info: ptr SystemInfo): int32 {.importc: "get_system_info",
nodecl.}

proc countProcessors*(): int {.rtl, extern: "ncpi$1".} =
## returns the numer of the processors/cores the machine has.
Expand Down

0 comments on commit d6b4e04

Please sign in to comment.