mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
16 lines
423 B
Diff
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
|