diff --git a/lib/std/time_t.nim b/lib/std/time_t.nim index 5fa95fff38..de051b1359 100644 --- a/lib/std/time_t.nim +++ b/lib/std/time_t.nim @@ -14,7 +14,7 @@ when defined(nimdoc): ## 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: "".} = distinct int32 + type Time* {.importc: "time_t", header: "".} = distinct clong else: # newest version of Visual C++ defines time_t to be of 64 bits type Time* {.importc: "time_t", header: "".} = distinct int64