Merge pull request #3947 from def-/iofbf

Support IOFBF and IONBF on all systems
This commit is contained in:
Andreas Rumpf 2016-03-10 13:40:47 +01:00
commit a1a44c99de
3 changed files with 14 additions and 21 deletions

View file

@ -82,12 +82,11 @@ when NoFakeVars:
const
IOFBF = cint(0)
IONBF = cint(4)
elif defined(macosx) or defined(linux):
else:
# On all systems I could find, including Linux, Mac OS X, and the BSDs
const
IOFBF = cint(0)
IONBF = cint(2)
else:
{.error: "IOFBF not ported to your platform".}
else:
var
IOFBF {.importc: "_IOFBF", nodecl.}: cint