Merge pull request #7471 from yglukhov/fixed-times-cpp-windows-32

Fixed compilation of times.nim with mingw 4.9.2 C++ 32bit
This commit is contained in:
Dominik Picheta 2018-04-05 23:06:38 +01:00 • committed by GitHub
commit 1bd4560986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,9 @@ when defined(posix):
elif defined(windows): elif defined(windows):
import winlean import winlean
when defined(i386) and defined(gcc):
type CTime {.importc: "time_t", header: "<time.h>".} = distinct int32
else:
# newest version of Visual C++ defines time_t to be of 64 bits # 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 # visual c's c runtime exposes these under a different name