Correction as I hadn't realised setvbuf had been renamed.

This commit is contained in:
A. S. Budden
2016-06-13 16:57:52 +01:00
parent 1095b35a79
commit 8e28a6140b

View File

@@ -371,10 +371,10 @@ proc writeFile(filename, content: string) =
proc setStdIoUnbuffered() =
when declared(stdout):
discard setvbuf(stdout, nil, IONBF, 0)
discard c_setvbuf(stdout, nil, IONBF, 0)
when declared(stderr):
discard setvbuf(stderr, nil, IONBF, 0)
discard c_setvbuf(stderr, nil, IONBF, 0)
when declared(stdin):
discard setvbuf(stdin, nil, IONBF, 0)
discard c_setvbuf(stdin, nil, IONBF, 0)
{.pop.}