Correction as I hadn't realised setvbuf had been renamed.
This commit is contained in:
parent
1095b35a79
commit
8e28a6140b
1 changed files with 3 additions and 3 deletions
|
|
@ -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.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue