forked from OSchip/llvm-project
Tweak clang support for char16_t/char32_t
llvm-svn: 114129
This commit is contained in:
parent
d61e3833a3
commit
d8e7922ba2
|
@ -90,7 +90,8 @@
|
||||||
#define _LIBCPP_HAS_NO_TEMPLATE_ALIASES
|
#define _LIBCPP_HAS_NO_TEMPLATE_ALIASES
|
||||||
|
|
||||||
#ifndef __GXX_EXPERIMENTAL_CXX0X__
|
#ifndef __GXX_EXPERIMENTAL_CXX0X__
|
||||||
#define _LIBCPP_HAS_NO_UNICODE_CHARS
|
typedef __char16_t char16_t;
|
||||||
|
typedef __char32_t char32_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(__has_feature(cxx_exceptions))
|
#if !(__has_feature(cxx_exceptions))
|
||||||
|
@ -220,13 +221,8 @@ using namespace _LIBCPP_NAMESPACE __attribute__((__strong__));
|
||||||
#endif // defined(__GNUC__)
|
#endif // defined(__GNUC__)
|
||||||
|
|
||||||
#ifdef _LIBCPP_HAS_NO_UNICODE_CHARS
|
#ifdef _LIBCPP_HAS_NO_UNICODE_CHARS
|
||||||
#ifdef __clang__
|
|
||||||
typedef __char16_t char16_t;
|
|
||||||
typedef __char32_t char32_t;
|
|
||||||
#else
|
|
||||||
typedef unsigned short char16_t;
|
typedef unsigned short char16_t;
|
||||||
typedef unsigned int char32_t;
|
typedef unsigned int char32_t;
|
||||||
#endif
|
|
||||||
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
|
#endif // _LIBCPP_HAS_NO_UNICODE_CHARS
|
||||||
|
|
||||||
#ifdef _LIBCPP_HAS_NO_STATIC_ASSERT
|
#ifdef _LIBCPP_HAS_NO_STATIC_ASSERT
|
||||||
|
|
Loading…
Reference in New Issue