fix O_BINARY type

This commit is contained in:
Jacek Sieka
2016-06-08 22:48:38 +08:00
parent 1d7f86e0cc
commit ea53cc7fcd

View File

@@ -2669,7 +2669,7 @@ when not defined(JS): #and not defined(nimscript):
proc c_setmode(handle, mode: cint) {.importc: "_setmode",
header: "<io.h>".}
var
O_BINARY {.importc: "O_BINARY", nodecl.}: int
O_BINARY {.importc: "O_BINARY", nodecl.}: cint
# we use binary mode on Windows:
c_setmode(c_fileno(stdin), O_BINARY)