diff options
author | genotrance <dev@genotrance.com> | 2019-01-14 15:16:11 -0600 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-01-14 22:16:11 +0100 |
commit | dd1f23f6fc9c3d57f5d3e2a44d2abe4dc1b57a2a (patch) | |
tree | ae5222552c826d47dd8bab743708c55bd78cc223 /lib/pure | |
parent | 1899d8d107e2f5d991fd3cad321c959768bdf8c8 (diff) | |
download | Nim-dd1f23f6fc9c3d57f5d3e2a44d2abe4dc1b57a2a.tar.gz |
Expose CTime (#10301)
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/times.nim | 6 |
1 files changed, 3 insertions, 3 deletions
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: "<time.h>".}: Clockid @@ -236,10 +236,10 @@ elif defined(windows): import winlean when defined(i386) and defined(gcc): - type CTime {.importc: "time_t", header: "<time.h>".} = distinct int32 + type CTime* {.importc: "time_t", header: "<time.h>".} = distinct int32 else: # newest version of Visual C++ defines time_t to be of 64 bits - type CTime {.importc: "time_t", header: "<time.h>".} = distinct int64 + type CTime* {.importc: "time_t", header: "<time.h>".} = distinct int64 # visual c's c runtime exposes these under a different name var timezone {.importc: "_timezone", header: "<time.h>".}: int |