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:
parent
976270916b
commit
a77a3b723f
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue