From 753d18d66c978b192b5c4fcf9b86c755c3fa9266 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 11 Oct 2014 13:16:51 +0200 Subject: minor cleanup for cpuinfo --- lib/pure/concurrency/cpuinfo.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/pure/concurrency') diff --git a/lib/pure/concurrency/cpuinfo.nim b/lib/pure/concurrency/cpuinfo.nim index cd8e5b14a..bd10a416f 100644 --- a/lib/pure/concurrency/cpuinfo.nim +++ b/lib/pure/concurrency/cpuinfo.nim @@ -26,14 +26,13 @@ when defined(openbsd) or defined(netbsd): {.emit:"#include ".} when defined(macosx) or defined(bsd): - {.emit:"#include ".} const CTL_HW = 6 HW_AVAILCPU = 25 HW_NCPU = 3 proc sysctl(x: ptr array[0..3, cint], y: cint, z: pointer, a: var csize, b: pointer, c: int): cint {. - importc: "sysctl".} + importc: "sysctl", header: "".} proc countProcessors*(): int {.rtl, extern: "ncpi$1".} = ## returns the numer of the processors/cores the machine has. -- cgit 1.4.1-2-gfad0