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
|