From f2533a8798b0e48c1f811eeffaa81d90ab3aaed9 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Wed, 14 Mar 2012 14:10:37 +0000 Subject: [PATCH] Make sure [at_]quick_exit is in std:: git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@152717 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__config | 4 ++++ include/cstdlib | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/__config b/include/__config index e0b9582cd..6b2901458 100644 --- a/include/__config +++ b/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/include/cstdlib b/include/cstdlib index 1158db2c0..a5c78e982 100644 --- a/include/cstdlib +++ b/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__)