Page MenuHomeFreeBSD

D44664.id136635.diff
No OneTemporary

D44664.id136635.diff

diff --git a/include/stdbool.h b/include/stdbool.h
--- a/include/stdbool.h
+++ b/include/stdbool.h
@@ -29,12 +29,19 @@
#ifndef __bool_true_false_are_defined
#define __bool_true_false_are_defined 1
-#ifndef __cplusplus
+#if (__STDC_VERSION__ < 202311L) && !defined(__cplusplus)
#define false 0
#define true 1
#define bool _Bool
-#endif /* !__cplusplus */
+#else /* (__STDC_VERSION__ >= 202311L) || defined(__cplusplus) */
+
+#define true true
+#define false false
+
+#define bool bool
+
+#endif /* (__STDC_VERSION__ < 202311L) && !defined(__cplusplus) */
#endif /* __bool_true_false_are_defined */

File Metadata

Mime Type
text/plain
Expires
Thu, Aug 27, 3:07 PM (2 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37395951
Default Alt Text
D44664.id136635.diff (614 B)

Event Timeline