fix O_BINARY type
This commit is contained in:
parent
1d7f86e0cc
commit
ea53cc7fcd
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue