X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmain.cpp;h=fcb7e40c25118bf81f35a2361fd77d4d69840d33;hp=1a8309700555bfd61ef916fad97619d48d50386f;hb=a77a3b723f1cb7ddcb9313888d779b48551e0501;hpb=5c5af4fa6533e22fb56dd22985cf2b3938efde6c
diff --git a/src/main.cpp b/src/main.cpp
index 1a830970..fcb7e40c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -17,6 +17,7 @@
along with this program. If not, see .
*/
+#include
#include
#include
@@ -35,6 +36,9 @@ extern void kpk_bitbase_init();
int main(int argc, char* argv[]) {
+ // Disable output buffering: printf() does not work correctly otherwise
+ setvbuf(stdout, NULL, _IONBF, 0);
+
bitboards_init();
Position::init();
kpk_bitbase_init();