fixes to allow the usage of clang on windows with the msvc abi and ms headers (#6442)
This commit is contained in:
parent
9b1a23c554
commit
d55e02ddf1
5 changed files with 20 additions and 18 deletions
|
|
@ -2872,7 +2872,7 @@ when not defined(JS): #and not defined(nimscript):
|
|||
importc: when defined(bcc): "setmode" else: "_setmode",
|
||||
header: "<io.h>".}
|
||||
var
|
||||
O_BINARY {.importc: "O_BINARY", nodecl.}: cint
|
||||
O_BINARY {.importc: "_O_BINARY", header:"<fcntl.h>".}: 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