[bugfix] fix mach_absolute_time header; refs #11591 (#11593)

This commit is contained in:
Timothee Cour
2019-07-03 05:59:07 -07:00
committed by Andreas Rumpf
parent 1e9316e23c
commit 0ca71dd92c

View File

@@ -36,9 +36,9 @@ elif defined(macosx):
MachTimebaseInfoData {.pure, final,
importc: "mach_timebase_info_data_t",
header: "<mach/mach_time.h>".} = object
numer, denom: int32
numer, denom: int32 # note: `uint32` in sources
proc mach_absolute_time(): int64 {.importc, header: "<mach/mach.h>".}
proc mach_absolute_time(): uint64 {.importc, header: "<mach/mach_time.h>".}
proc mach_timebase_info(info: var MachTimebaseInfoData) {.importc,
header: "<mach/mach_time.h>".}