summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-03-14 14:10:37 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-03-14 14:10:37 +0000
commit5f13d66fb4153b360f9bd7ee2fcaf7fbb8ce1552 (patch)
tree774d6e3f334e977b72d349d12368d09a0ece66c8
parent2f4cb4d79d016d85315f8a8d6d373f9b1ed05603 (diff)
downloadbcm5719-llvm-5f13d66fb4153b360f9bd7ee2fcaf7fbb8ce1552.tar.gz
bcm5719-llvm-5f13d66fb4153b360f9bd7ee2fcaf7fbb8ce1552.zip
Make sure [at_]quick_exit is in std::
llvm-svn: 152717
-rw-r--r--libcxx/include/__config4
-rw-r--r--libcxx/include/cstdlib4
2 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config
index e0b9582cd08..6b290145858 100644
--- a/libcxx/include/__config
+++ b/libcxx/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/libcxx/include/cstdlib b/libcxx/include/cstdlib
index 1158db2c0ac..a5c78e98274 100644
--- a/libcxx/include/cstdlib
+++ b/libcxx/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 <stdlib.h.h> #ifdef __cplusplus
#if !defined(_MSC_VER) && !defined(__sun__)
OpenPOWER on IntegriCloud