[cfe-commits] [libcxx] r152717 - in /libcxx/trunk/include: __config cstdlib

David Chisnall csdavec at swan.ac.uk
Wed Mar 14 07:10:37 PDT 2012


Author: theraven
Date: Wed Mar 14 09:10:37 2012
New Revision: 152717

URL: http://llvm.org/viewvc/llvm-project?rev=152717&view=rev
Log:
Make sure [at_]quick_exit is in std::


Modified:
    libcxx/trunk/include/__config
    libcxx/trunk/include/cstdlib

Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=152717&r1=152716&r2=152717&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Wed Mar 14 09:10:37 2012
@@ -245,6 +245,10 @@
 #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)

Modified: libcxx/trunk/include/cstdlib
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/cstdlib?rev=152717&r1=152716&r2=152717&view=diff
==============================================================================
--- libcxx/trunk/include/cstdlib (original)
+++ libcxx/trunk/include/cstdlib Wed Mar 14 09:10:37 2012
@@ -131,6 +131,10 @@
 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__)





More information about the cfe-commits mailing list