1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1097888
--- sjeng-11.2.orig/sjeng.h
+++ sjeng-11.2/sjeng.h
@@ -27,6 +27,7 @@
#include "config.h"
#include <ctype.h>
#include <signal.h>
+#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -99,9 +100,8 @@
#define diagl(square) (diagl[(square)])
#define diagr(square) (diagr[(square)])
-#ifndef INPROBECODE
-typedef enum {FALSE, TRUE} bool;
-#endif
+#define TRUE true
+#define FALSE false
/* castle flags: */
#define no_castle 0
|