Configure to get along with 2.9 clang
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@136526 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -146,6 +146,9 @@ typedef __char32_t char32_t;
|
|||||||
|
|
||||||
#if !(__has_feature(cxx_auto_type))
|
#if !(__has_feature(cxx_auto_type))
|
||||||
#define _LIBCPP_HAS_NO_AUTO_TYPE
|
#define _LIBCPP_HAS_NO_AUTO_TYPE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if __clang_major__ < 3
|
||||||
#define _LIBCPP_HAS_NO_ADVANCED_SFINAE
|
#define _LIBCPP_HAS_NO_ADVANCED_SFINAE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1294,7 +1294,7 @@ struct __has_allocate_hint
|
|||||||
|
|
||||||
#endif // _LIBCPP_HAS_NO_ADVANCED_SFINAE
|
#endif // _LIBCPP_HAS_NO_ADVANCED_SFINAE
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_ADVANCED_SFINAE
|
#if !defined(_LIBCPP_HAS_NO_ADVANCED_SFINAE) && !defined(_LIBCPP_HAS_NO_VARIADICS)
|
||||||
|
|
||||||
template <class _Alloc, class _Tp, class ..._Args>
|
template <class _Alloc, class _Tp, class ..._Args>
|
||||||
decltype(_VSTD::declval<_Alloc>().construct(_VSTD::declval<_Tp*>(),
|
decltype(_VSTD::declval<_Alloc>().construct(_VSTD::declval<_Tp*>(),
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ std::get_terminate() _NOEXCEPT
|
|||||||
return __sync_fetch_and_add(&__terminate_handler, (std::terminate_handler)0);
|
return __sync_fetch_and_add(&__terminate_handler, (std::terminate_handler)0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_ATTRIBUTE(noreturn)
|
||||||
void
|
void
|
||||||
std::terminate() _NOEXCEPT
|
std::terminate() _NOEXCEPT
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user