fix redundant time import with different signature (#5715)

This commit is contained in:
Jacek Sieka 2017-04-17 04:50:10 +08:00 • committed by Andreas Rumpf
commit 99d20f6112

View file

@ -69,10 +69,9 @@ var
proc genOid*(): Oid = proc genOid*(): Oid =
## generates a new OID. ## generates a new OID.
proc rand(): cint {.importc: "rand", header: "<stdlib.h>", nodecl.} proc rand(): cint {.importc: "rand", header: "<stdlib.h>", nodecl.}
proc gettime(dummy: ptr cint): cint {.importc: "time", header: "<time.h>".}
proc srand(seed: cint) {.importc: "srand", header: "<stdlib.h>", nodecl.} proc srand(seed: cint) {.importc: "srand", header: "<stdlib.h>", nodecl.}
var t = gettime(nil) var t = getTime().int32
var i = int32(atomicInc(incr)) var i = int32(atomicInc(incr))