File: fix-gcc15-build.patch

package info (click to toggle)
libbit-vector-perl 7.4-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,028 kB
  • sloc: perl: 6,703; ansic: 3,657; makefile: 9
file content (27 lines) | stat: -rw-r--r-- 638 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
From: Victor Seva <vseva@debian.org>
Date: Thu, 11 Sep 2025 22:13:48 +0200
Subject: fix gcc15 build

---
 ToolBox.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/ToolBox.h b/ToolBox.h
index bf18b72..fbfdc30 100644
--- a/ToolBox.h
+++ b/ToolBox.h
@@ -94,8 +94,12 @@ typedef  Z_longword         *Z_longwordptr;
         #define boolean bool
     #else
 	typedef int boolean;
-	#ifndef I_STDBOOL
-	    enum { false, true };
+	#if __STDC_VERSION__ >= 202311L
+	/* bool is part of the C23 standard */
+	#else
+        #ifndef I_STDBOOL
+	        enum { false, true };
+        #endif
 	#endif
     #endif
 #endif