aports/main/xmlrpc-c/gcc15.patch
J. Neuschäfer 66c3954030 main/xmprpc-c: fix build with gcc 15
Patch from SVN revision 3318
2025-07-31 15:17:18 +02:00

16 lines
423 B
Diff

--- 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