mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-22 15:25:22 +00:00
fix redundant time import with different signature (#5715)
This commit is contained in:
committed by
Andreas Rumpf
parent
759a586b19
commit
99d20f6112
@@ -69,10 +69,9 @@ var
|
||||
proc genOid*(): Oid =
|
||||
## generates a new OID.
|
||||
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.}
|
||||
|
||||
var t = gettime(nil)
|
||||
var t = getTime().int32
|
||||
|
||||
var i = int32(atomicInc(incr))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user