summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index e47749f..34d1edb 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -94,6 +94,11 @@ typedef __ct_rune_t __wint_t; /* wint_t (see above) */
typedef __uint_least16_t __char16_t;
typedef __uint_least32_t __char32_t;
#endif
+/* In C++11, char16_t and char32_t are built-in types. */
+#if defined(__cplusplus) && __cplusplus >= 201103L
+#define _CHAR16_T_DECLARED
+#define _CHAR32_T_DECLARED
+#endif
typedef __uint32_t __dev_t; /* device number */
OpenPOWER on IntegriCloud