summaryrefslogtreecommitdiff
path: root/games-board/sjeng/files/sjeng-11.2_p8_p1-c23.patch
blob: a5a4ba858ffb0ea686a8195d86c2e969b02bb154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/sjeng.h
+++ b/sjeng.h
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <stdbool.h>
 #include <time.h>
 
 #ifdef HAVE_SYS_TIMEB_H
@@ -100,7 +101,8 @@
 #define diagr(square) (diagr[(square)])
 
 #ifndef INPROBECODE
-typedef enum {FALSE, TRUE} bool;
+#define FALSE false
+#define TRUE true
 #endif
 
 /* castle flags: */