Fixed compilation of times.nim with mingw 4.9.2 C++ 32bit
This commit is contained in:
parent
755570bcfb
commit
bc724a0a81
1 changed files with 6 additions and 3 deletions
|
|
@ -53,6 +53,9 @@ when defined(posix):
|
|||
elif defined(windows):
|
||||
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
|
||||
type CTime {.importc: "time_t", header: "<time.h>".} = distinct int64
|
||||
# visual c's c runtime exposes these under a different name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue