mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 11:18:09 -07:00
- fix C23 bool misbehaviour - rebase system-expat patch - tests pass with gcc-15/clang-22 and both libxml2/system-expat - remove IUSE=threads, use upstream default Closes: https://bugs.gentoo.org/972567 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/608 Merges: https://codeberg.org/gentoo/gentoo/pulls/608 Signed-off-by: Sam James <sam@gentoo.org>
17 lines
387 B
Diff
17 lines
387 B
Diff
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
|
|
|