summaryrefslogtreecommitdiffstats
path: root/src/exception.cpp
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2013-02-07 13:09:19 +0000
committertheraven <theraven@FreeBSD.org>2013-02-07 13:09:19 +0000
commitfab14d3df75fc3af83c06ed85bb9c068f1144351 (patch)
treed1f057460d329356b56f67bf5740b7393c925844 /src/exception.cpp
parent3deb12eac5b63fcfb8306b76b41032a9083ae563 (diff)
downloadFreeBSD-src-fab14d3df75fc3af83c06ed85bb9c068f1144351.zip
FreeBSD-src-fab14d3df75fc3af83c06ed85bb9c068f1144351.tar.gz
Import new libc++ to vendor branch.
Diffstat (limited to 'src/exception.cpp')
-rw-r--r--src/exception.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exception.cpp b/src/exception.cpp
index 0dbb660..0cd182b 100644
--- a/src/exception.cpp
+++ b/src/exception.cpp
@@ -33,7 +33,7 @@
#if defined(LIBCXXRT) || defined(_LIBCPPABI_VERSION)
#define HAVE_DEPENDENT_EH_ABI 1
#endif
-#else // __has_include(<cxxabi.h>)
+#elif !defined(__GLIBCXX__) // __has_include(<cxxabi.h>)
static std::terminate_handler __terminate_handler;
static std::unexpected_handler __unexpected_handler;
#endif // __has_include(<cxxabi.h>)
@@ -41,7 +41,7 @@
namespace std
{
-#if !defined(LIBCXXRT) && !defined(_LIBCPPABI_VERSION)
+#if !defined(LIBCXXRT) && !defined(_LIBCPPABI_VERSION) && !defined(__GLIBCXX__)
// libcxxrt provides implementations of these functions itself.
unexpected_handler
@@ -99,7 +99,7 @@ terminate() _NOEXCEPT
}
#endif // !defined(LIBCXXRT) && !defined(_LIBCPPABI_VERSION)
-#ifndef LIBCXXRT
+#if !defined(LIBCXXRT) && !defined(__GLIBCXX__)
bool uncaught_exception() _NOEXCEPT
{
#if __APPLE__ || defined(_LIBCPPABI_VERSION)
@@ -124,7 +124,7 @@ const char* exception::what() const _NOEXCEPT
#endif // _LIBCPPABI_VERSION
#endif //LIBCXXRT
-#ifndef _LIBCPPABI_VERSION
+#if !defined(_LIBCPPABI_VERSION) && !defined(__GLIBCXX__)
bad_exception::~bad_exception() _NOEXCEPT
{
OpenPOWER on IntegriCloud