1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 08:13:08 +00:00

Disable again buffering at startup

Partially revert efd2167998
Without this patch SF does not send "bestmove" to GUI.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2011-12-17 16:56:36 +01:00
parent 976270916b
commit a77a3b723f

View file

@ -17,6 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <cstdio>
#include <iostream>
#include <string>
@ -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();