Implement exclude-moves feature
[bonanza.git] / root.c
diff --git a/root.c b/root.c
index d83b417..b3faa2d 100644 (file)
--- a/root.c
+++ b/root.c
@@ -2,7 +2,7 @@
 #include <limits.h>
 #include "shogi.h"
 
-#if defined(USI) || defined(MNJ_LAN)
+#if defined(USI) || defined(MNJ_LAN) || defined(XBOARD)
 static int is_move_ignore( unsigned int move );
 #endif
 
@@ -30,7 +30,7 @@ make_root_move_list( tree_t * restrict ptree )
 
       MakeMove( root_turn, move, 1 );
       if ( ! InCheck( root_turn )
-#if defined(USI) || defined(MNJ_LAN)
+#if defined(USI) || defined(MNJ_LAN) || defined(XBOARD)
           && ! is_move_ignore( move )
 #endif
           )
@@ -157,7 +157,7 @@ make_root_move_list( tree_t * restrict ptree )
 }
 
 
-#if defined(USI) || defined(MNJ_LAN)
+#if defined(USI) || defined(MNJ_LAN) || defined(XBOARD)
 static int CONV
 is_move_ignore( unsigned int move )
 {