Support IOFBF and IONBF on all systems
This commit is contained in:
parent
e4e8ebd4a5
commit
5a06c2260d
1 changed files with 2 additions and 3 deletions
|
|
@ -82,12 +82,11 @@ when NoFakeVars:
|
||||||
const
|
const
|
||||||
IOFBF = cint(0)
|
IOFBF = cint(0)
|
||||||
IONBF = cint(4)
|
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
|
const
|
||||||
IOFBF = cint(0)
|
IOFBF = cint(0)
|
||||||
IONBF = cint(2)
|
IONBF = cint(2)
|
||||||
else:
|
|
||||||
{.error: "IOFBF not ported to your platform".}
|
|
||||||
else:
|
else:
|
||||||
var
|
var
|
||||||
IOFBF {.importc: "_IOFBF", nodecl.}: cint
|
IOFBF {.importc: "_IOFBF", nodecl.}: cint
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue