aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Chisnall <theraven@FreeBSD.org>2012-03-14 14:33:36 +0000
committerDavid Chisnall <theraven@FreeBSD.org>2012-03-14 14:33:36 +0000
commitacbeab898d6a7f4036c55962a2460aab3e0eda3f (patch)
treeb7ab2afd9535ba889a65e8ef7c2bb3796920d33d /include
parent362d815b81e2b4b66c33b99203d821b8928607e1 (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/__config4
-rw-r--r--include/cstdlib4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/__config b/include/__config
index e0b9582cd08e..6b2901458587 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 1158db2c0aca..a5c78e98274f 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 <stdlib.h.h> #ifdef __cplusplus
#if !defined(_MSC_VER) && !defined(__sun__)