mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-16 14:01:22 +00:00
fix setmode call
This commit is contained in:
@@ -2672,8 +2672,8 @@ when not defined(JS): #and not defined(nimscript):
|
||||
O_BINARY {.importc: "O_BINARY", nodecl.}: int
|
||||
|
||||
# we use binary mode on Windows:
|
||||
setmode(c_fileno(stdin), O_BINARY)
|
||||
setmode(c_fileno(stdout), O_BINARY)
|
||||
c_setmode(c_fileno(stdin), O_BINARY)
|
||||
c_setmode(c_fileno(stdout), O_BINARY)
|
||||
|
||||
when defined(endb):
|
||||
proc endbStep()
|
||||
|
||||
Reference in New Issue
Block a user