src/chess/game-info.h

changeset 80
b980a7192b5a
parent 78
ceb9197b3c6d
--- a/src/chess/game-info.h	Tue Jun 03 08:43:17 2025 +0200
+++ b/src/chess/game-info.h	Wed Jun 04 23:56:40 2025 +0200
@@ -31,6 +31,7 @@
 #define GAME_INFO_H
 
 #include <stdint.h>
+#include <stdbool.h>
 
 #define WHITE 0x10
 #define BLACK 0x20
@@ -99,10 +100,10 @@
     MoveList* movelist;
     MoveList* lastmove;
     unsigned int movecount; /* number of (half-)moves (counting BOTH colors) */
-    _Bool checkmate;
-    _Bool stalemate;
-    _Bool remis;
-    _Bool resign;
+    bool checkmate;
+    bool stalemate;
+    bool remis;
+    bool resign;
 } GameState;
 
 

mercurial