From dd1f23f6fc9c3d57f5d3e2a44d2abe4dc1b57a2a Mon Sep 17 00:00:00 2001 From: genotrance Date: Mon, 14 Jan 2019 15:16:11 -0600 Subject: Expose CTime (#10301) --- lib/pure/times.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/pure') diff --git a/lib/pure/times.nim b/lib/pure/times.nim index 8fe04a4b9..166dfd446 100644 --- a/lib/pure/times.nim +++ b/lib/pure/times.nim @@ -217,7 +217,7 @@ when defined(JS): elif defined(posix): import posix - type CTime = posix.Time + type CTime* = posix.Time var realTimeClockId {.importc: "CLOCK_REALTIME", header: "".}: Clockid @@ -236,10 +236,10 @@ elif defined(windows): import winlean when defined(i386) and defined(gcc): - type CTime {.importc: "time_t", header: "".} = distinct int32 + type CTime* {.importc: "time_t", header: "".} = distinct int32 else: # newest version of Visual C++ defines time_t to be of 64 bits - type CTime {.importc: "time_t", header: "".} = distinct int64 + type CTime* {.importc: "time_t", header: "".} = distinct int64 # visual c's c runtime exposes these under a different name var timezone {.importc: "_timezone", header: "".}: int -- cgit 1.4.1-2-gfad0