fix setmode call

This commit is contained in:
Jacek Sieka 2016-06-08 22:22:02 +08:00
commit 1d7f86e0cc

View file

@ -2672,8 +2672,8 @@ when not defined(JS): #and not defined(nimscript):
O_BINARY {.importc: "O_BINARY", nodecl.}: int O_BINARY {.importc: "O_BINARY", nodecl.}: int
# we use binary mode on Windows: # we use binary mode on Windows:
setmode(c_fileno(stdin), O_BINARY) c_setmode(c_fileno(stdin), O_BINARY)
setmode(c_fileno(stdout), O_BINARY) c_setmode(c_fileno(stdout), O_BINARY)
when defined(endb): when defined(endb):
proc endbStep() proc endbStep()