fixes cpuinfo regression
This commit is contained in:
parent
3aa7c2232e
commit
928bdb45f0
1 changed files with 2 additions and 8 deletions
|
|
@ -46,18 +46,12 @@ proc countProcessors*(): int {.rtl, extern: "ncpi$1".} =
|
||||||
## Returns 0 if it cannot be detected.
|
## Returns 0 if it cannot be detected.
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
type
|
type
|
||||||
SYSTEM_INFO_UNION1_STRUCT1 {.final, pure.} = object
|
|
||||||
wProcessorArchitecture: int16
|
|
||||||
wReserved: int16
|
|
||||||
SYSTEM_INFO_UNION1 {.final, union, pure.} = object
|
|
||||||
dwOemId: int32
|
|
||||||
s1: SYSTEM_INFO_UNION1_STRUCT1
|
|
||||||
SYSTEM_INFO {.final, pure.} = object
|
SYSTEM_INFO {.final, pure.} = object
|
||||||
u1: SYSTEM_INFO_UNION1
|
u1: int32
|
||||||
dwPageSize: int32
|
dwPageSize: int32
|
||||||
lpMinimumApplicationAddress: pointer
|
lpMinimumApplicationAddress: pointer
|
||||||
lpMaximumApplicationAddress: pointer
|
lpMaximumApplicationAddress: pointer
|
||||||
dwActiveProcessorMask: int32
|
dwActiveProcessorMask: ptr int32
|
||||||
dwNumberOfProcessors: int32
|
dwNumberOfProcessors: int32
|
||||||
dwProcessorType: int32
|
dwProcessorType: int32
|
||||||
dwAllocationGranularity: int32
|
dwAllocationGranularity: int32
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue