From eccfeea8a5f95c5484d846fba96de60c97d00c2c Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 14 Mar 2012 14:40:22 +0000 Subject: Import a slightly newer libc++, with some bugs fixed that were found by running the test suite on FreeBSD. Approved by: dim (mentor) --- contrib/libc++/include/__config | 4 ++++ contrib/libc++/include/cstdlib | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'contrib/libc++/include') diff --git a/contrib/libc++/include/__config b/contrib/libc++/include/__config index e0b9582..6b29014 100644 --- a/contrib/libc++/include/__config +++ b/contrib/libc++/include/__config @@ -245,6 +245,10 @@ typedef __char32_t char32_t; #define _LIBCPP_HAS_NO_CONSTEXPR #endif +#if __FreeBSD__ +#define _LIBCPP_HAS_QUICK_EXIT +#endif + #if (__has_feature(cxx_noexcept)) # define _NOEXCEPT noexcept # define _NOEXCEPT_(x) noexcept(x) diff --git a/contrib/libc++/include/cstdlib b/contrib/libc++/include/cstdlib index 1158db2..a5c78e9 100644 --- a/contrib/libc++/include/cstdlib +++ b/contrib/libc++/include/cstdlib @@ -131,6 +131,10 @@ using ::mbtowc; using ::wctomb; using ::mbstowcs; using ::wcstombs; +#ifdef _LIBCPP_HAS_QUICK_EXIT +using ::at_quick_exit; +using ::quick_exit; +#endif // MSVC already has the correct prototype in #ifdef __cplusplus #if !defined(_MSC_VER) && !defined(__sun__) -- cgit v1.1