Skip to content

Commit 89bdcd7

Browse files
author
Howard Hinnant
committed
Configure to get along with 2.9 clang
llvm-svn: 136526
1 parent ebbe564 commit 89bdcd7

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

libcxx/include/__config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ typedef __char32_t char32_t;
146146

147147
#if !(__has_feature(cxx_auto_type))
148148
#define _LIBCPP_HAS_NO_AUTO_TYPE
149+
#endif
150+
151+
#if __clang_major__ < 3
149152
#define _LIBCPP_HAS_NO_ADVANCED_SFINAE
150153
#endif
151154

libcxx/include/memory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ struct __has_allocate_hint
12941294

12951295
#endif // _LIBCPP_HAS_NO_ADVANCED_SFINAE
12961296

1297-
#ifndef _LIBCPP_HAS_NO_ADVANCED_SFINAE
1297+
#if !defined(_LIBCPP_HAS_NO_ADVANCED_SFINAE) && !defined(_LIBCPP_HAS_NO_VARIADICS)
12981298

12991299
template <class _Alloc, class _Tp, class ..._Args>
13001300
decltype(_VSTD::declval<_Alloc>().construct(_VSTD::declval<_Tp*>(),

libcxx/src/exception.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ std::get_terminate() _NOEXCEPT
5656
return __sync_fetch_and_add(&__terminate_handler, (std::terminate_handler)0);
5757
}
5858

59+
_ATTRIBUTE(noreturn)
5960
void
6061
std::terminate() _NOEXCEPT
6162
{

0 commit comments

Comments
 (0)