Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108129450
D44664.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
627 B
Referenced Files
None
Subscribers
None
D44664.diff
View Options
diff --git a/include/stdbool.h b/include/stdbool.h
--- a/include/stdbool.h
+++ b/include/stdbool.h
@@ -26,15 +26,19 @@
* SUCH DAMAGE.
*/
+#ifndef __STDC_VERSION_STDBOOL_H__
+#define __STDC_VERSION_STDBOOL_H__ 202311L
+
#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 */
+#endif /* (__STDC_VERSION__ < 202311L) && !defined(__cplusplus) */
#endif /* __bool_true_false_are_defined */
+#endif /* __STDC_VERSION_STDBOOL_H__ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 5:07 PM (12 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16032334
Default Alt Text
D44664.diff (627 B)
Attached To
Mode
D44664: stdbool.h: Update for C23
Attached
Detach File
Event Timeline
Log In to Comment