The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3b908a92b337328a56a5388e7ac4b72dae0d3bba

commit 3b908a92b337328a56a5388e7ac4b72dae0d3bba
Author:     Minsoo Choo <minsoochoo0...@proton.me>
AuthorDate: 2025-08-10 02:40:56 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2025-08-10 04:11:09 +0000

    types.h: Don't define true/false in C23
    
    From C23, bool, false, and true are keywords.
    
    Reviewed by: imp
    Differential Revision: https://reviews.freebsd.org/D44666
---
 sys/sys/types.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/sys/types.h b/sys/sys/types.h
index fd375139a092..8311c1901b7e 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -297,9 +297,11 @@ typedef    struct vm_page  *vm_page_t;
 #if    defined(_KERNEL) || defined(_STANDALONE)
 #if !defined(__bool_true_false_are_defined) && !defined(__cplusplus)
 #define        __bool_true_false_are_defined   1
+#if __STDC_VERSION__ < 202311L
 #define        false   0
 #define        true    1
 typedef        _Bool   bool;
+#endif /* __STDC_VERSION__ < 202311L */
 #endif /* !__bool_true_false_are_defined && !__cplusplus */
 #endif /* KERNEL || _STANDALONE */
 

Reply via email to