X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmain.cpp;h=fcb7e40c25118bf81f35a2361fd77d4d69840d33;hb=939b621e5c67e9ef89b409fd773d38058341906c;hp=a437f8839aface14cae7b15dede06a3cd2952d5a;hpb=efd21679980dfd59320a5e238f44952873353829;p=stockfish
diff --git a/src/main.cpp b/src/main.cpp
index a437f883..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,7 +36,10 @@ extern void kpk_bitbase_init();
int main(int argc, char* argv[]) {
- init_bitboards();
+ // Disable output buffering: printf() does not work correctly otherwise
+ setvbuf(stdout, NULL, _IONBF, 0);
+
+ bitboards_init();
Position::init();
kpk_bitbase_init();
Search::init();