summary refs log tree commit diff stats
path: root/lib/std/time_t.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/time_t.nim')
-rw-r--r--lib/std/time_t.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/std/time_t.nim b/lib/std/time_t.nim
index 37918ee6c..de051b135 100644
--- a/lib/std/time_t.nim
+++ b/lib/std/time_t.nim
@@ -9,15 +9,15 @@
 
 when defined(nimdoc):
   type
-    impl = distinct int64
-    Time* = impl ## \
-      ## Wrapper for ``time_t``. On posix, this is an alias to ``posix.Time``.
+    Impl = distinct int64
+    Time* = Impl ## \
+      ## Wrapper for `time_t`. On posix, this is an alias to `posix.Time`.
 elif defined(windows):
   when defined(i386) and defined(gcc):
-    type Time* {.importc: "time_t", header: "<time.h>".} = distinct int32
+    type Time* {.importc: "time_t", header: "<time.h>".} = distinct clong
   else:
     # newest version of Visual C++ defines time_t to be of 64 bits
     type Time* {.importc: "time_t", header: "<time.h>".} = distinct int64
 elif defined(posix):
-  import posix
+  import std/posix
   export posix.Time
\ No newline at end of file