File: fix-gcc15-build.patch

package info (click to toggle)
libdate-pcalc-perl 6.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,904 kB
  • sloc: perl: 16,706; ansic: 3,086; sh: 14; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 750 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
From: Victor Seva <>
Date: Tue, 16 Sep 2025 12:42:04 +0200
Subject: fix gcc15 build

---
 src/C_XS/ToolBox.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

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