Skip to content

Commit

Permalink
[bugfix] fix mach_absolute_time header; refs #11591 (#11593)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0ca71dd)
  • Loading branch information
timotheecour authored and narimiran committed Jul 8, 2019
1 parent 20f6acc commit b94e7b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/system/timers.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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>".}

Expand Down

0 comments on commit b94e7b6

Please sign in to comment.