diff --git a/sys/sys/_types.h b/sys/sys/_types.h --- a/sys/sys/_types.h +++ b/sys/sys/_types.h @@ -207,6 +207,10 @@ #define _CHAR16_T_DECLARED #define _CHAR32_T_DECLARED #endif +/* and so is char8_t in C++20 */ +#if defined(__cplusplus) && __cplusplus >= 202002L +#define _CHAR8_T_DECLARED +#endif typedef struct { long long __max_align1