File: fix-gcc15-build.patch

package info (click to toggle)
xmlrpc-c 1.59.03-10.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,132 kB
  • sloc: ansic: 55,248; cpp: 13,541; sh: 3,321; makefile: 2,553; perl: 593; xml: 134
file content (26 lines) | stat: -rw-r--r-- 770 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
From: Victor Seva <vseva@debian.org>
Date: Thu, 11 Sep 2025 11:39:06 +0200
Subject: fix gcc15 build

Origin: upstream, https://sourceforge.net/p/xmlrpc-c/code/3318/
---
 lib/util/include/bool.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/util/include/bool.h b/lib/util/include/bool.h
index 312477c..ac77eed 100644
--- a/lib/util/include/bool.h
+++ b/lib/util/include/bool.h
@@ -5,7 +5,11 @@
    collision.
 */
 
-#ifndef __cplusplus
+#ifdef __cplusplus
+/* bool has always been part of the C++ language */
+#elif __STDC_VERSION__ >= 202311L
+/* bool is part of the C23 standard */
+#else
 /* At least the GNU compiler defines __bool_true_false_are_defined */
 #ifndef __bool_true_false_are_defined
 #define __bool_true_false_are_defined