fixes to allow the usage of clang on windows with the msvc abi and ms headers (#6442)

This commit is contained in:
Charlie Barto 2017-10-09 11:26:53 -04:00 • committed by Andreas Rumpf
commit d55e02ddf1
5 changed files with 20 additions and 18 deletions

View file

@ -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)