summaryrefslogtreecommitdiffstats
path: root/include/stdatomic.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2013-05-21 19:59:37 +0000
committered <ed@FreeBSD.org>2013-05-21 19:59:37 +0000
commit05bd8275f3829e7d1f55e8faabd64095eab3c291 (patch)
tree78913f76e25776c6cc64161dd2346bac56d4191e /include/stdatomic.h
parentb6bdb6d2f3ebdde975a369669792021f70118a50 (diff)
downloadFreeBSD-src-05bd8275f3829e7d1f55e8faabd64095eab3c291.zip
FreeBSD-src-05bd8275f3829e7d1f55e8faabd64095eab3c291.tar.gz
Add <uchar.h>.
The <uchar.h> header, part of C11, adds a small number of utility functions for 16/32-bit "universal" characters, which may or may not be UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight wrappers around wcrtomb() and mbrtowc(). While there, also add (non-yet-standard) _l functions, similar to the ones we already have for the other locale-dependent functions. Reviewed by: theraven
Diffstat (limited to 'include/stdatomic.h')
-rw-r--r--include/stdatomic.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/stdatomic.h b/include/stdatomic.h
index 44f73b5..4d03bb9 100644
--- a/include/stdatomic.h
+++ b/include/stdatomic.h
@@ -145,10 +145,8 @@ typedef _Atomic(long) atomic_long;
typedef _Atomic(unsigned long) atomic_ulong;
typedef _Atomic(long long) atomic_llong;
typedef _Atomic(unsigned long long) atomic_ullong;
-#if 0
typedef _Atomic(__char16_t) atomic_char16_t;
typedef _Atomic(__char32_t) atomic_char32_t;
-#endif
typedef _Atomic(__wchar_t) atomic_wchar_t;
typedef _Atomic(__int_least8_t) atomic_int_least8_t;
typedef _Atomic(__uint_least8_t) atomic_uint_least8_t;
OpenPOWER on IntegriCloud