Skip to content

Commit

Permalink
No line buffering in windows workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
abulmo committed Nov 9, 2020
1 parent f20a36e commit 458a5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dumb.d
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class Uci {

/* main function */
void main(string [] args) {
stdout.setvbuf(4096, _IOLBF);
version (Windows) stdout.setvbuf(0, _IONBF); else stdout.setvbuf(4096, _IOLBF);
Uci uci = new Uci;
if (args.length == 3 && (args[1] == "--bench" || args[1] == "-b")) uci.bench(to!int(args[2]));
else if (args.length == 2 && (args[1] == "--test" || args[1] == "-t")) uci.test();
Expand Down

0 comments on commit 458a5fa

Please sign in to comment.