aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/types.h')
-rw-r--r--sys/sys/types.h2
1 files changed, 2 insertions, 0 deletions
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 */