aboutsummaryrefslogtreecommitdiff
path: root/include/uchar.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uchar.h')
-rw-r--r--include/uchar.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uchar.h b/include/uchar.h
index 951c6339abec..ebb2c89776b8 100644
--- a/include/uchar.h
+++ b/include/uchar.h
@@ -32,6 +32,11 @@
#include <sys/cdefs.h>
#include <sys/_types.h>
+#if __ISO_C_VISIBLE >= 2023 && !defined(_CHAR8_T_DECLARED)
+typedef unsigned char char8_t;
+#define _CHAR8_T_DECLARED
+#endif
+
#ifndef _CHAR16_T_DECLARED
typedef __char16_t char16_t;
#define _CHAR16_T_DECLARED