File: gcc-15.patch

package info (click to toggle)
polyglot 2.0.4%2Bgit20210322-1.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,296 kB
  • sloc: ansic: 10,577; sh: 3,711; makefile: 18
file content (36 lines) | stat: -rw-r--r-- 699 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1097632

--- polyglot-2.0.4+git20210322.orig/util.h
+++ polyglot-2.0.4+git20210322/util.h
@@ -6,6 +6,7 @@
 
 // includes
 
+#include <stdbool.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/timeb.h>
@@ -27,10 +28,10 @@
 
 
 #undef FALSE
-#define FALSE 0
+#define FALSE false
 
 #undef TRUE
-#define TRUE 1
+#define TRUE true
 
 #ifdef DEBUG
 #  undef DEBUG
@@ -110,8 +111,6 @@ typedef unsigned short uint16;
 typedef signed int sint32;
 typedef unsigned int uint32;
 
-typedef int bool;
-
 #ifdef _MSC_VER
   typedef signed __int64 sint64;
   typedef unsigned __int64 uint64;