summaryrefslogtreecommitdiff
path: root/dev-libs/xmlrpc-c/files/xmlrpc-c-1.64.03-use-stdbool.patch
blob: b58b6dc887a90ca67f348790b2609b09f9c6d7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Replace custom bool definitions with stdbool.h to work with C23.

--- a/lib/util/include/bool.h
+++ b/lib/util/include/bool.h
@@ -9,10 +9,7 @@
 /* At least the GNU compiler defines __bool_true_false_are_defined */
 #ifndef __bool_true_false_are_defined
 #define __bool_true_false_are_defined
-typedef enum {
-    false = 0,
-    true = 1
-} bool;
+#include <stdbool.h>
 #endif
 #endif