diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-09-25 12:13:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-25 12:13:11 +0200 |
commit | 27b622665d32adf2a26128e936b83da9441e1399 (patch) | |
tree | 515283cb87b21900e71591fce0015269c6c2cf23 | |
parent | c240806756579c3375b1a79e1e65c40087a52ac5 (diff) | |
parent | bd3463f77616305b80c68b9f4260e088643668e5 (diff) | |
download | Nim-27b622665d32adf2a26128e936b83da9441e1399.tar.gz |
Merge pull request #9065 from alaviss/haiku-32bit-fix
cpuinfo: fix compilation for 32bit Haiku
-rw-r--r-- | lib/pure/concurrency/cpuinfo.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/concurrency/cpuinfo.nim b/lib/pure/concurrency/cpuinfo.nim index 541265da9..4f681f980 100644 --- a/lib/pure/concurrency/cpuinfo.nim +++ b/lib/pure/concurrency/cpuinfo.nim @@ -44,12 +44,12 @@ when defined(genode): importcpp: "@->cpu().affinity_space().total()".} when defined(haiku): - {.emit: "#include <OS.h>".} type - SystemInfo {.importc: "system_info", bycopy.} = object + SystemInfo {.importc: "system_info", header: "<OS.h>".} = 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", + header: "<OS.h>".} proc countProcessors*(): int {.rtl, extern: "ncpi$1".} = ## returns the numer of the processors/cores the machine has. |