From 299fc29a59f7f301a1f33092c2ffab1ab22b67dc Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Fri, 30 Nov 2012 21:02:29 +0000 Subject: [CMake] Add support for selecting which c++ abi library to use. llvm-svn: 169036 --- libcxx/src/exception.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcxx/src') diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp index 0dbb6604a56..f5e6d2259da 100644 --- a/libcxx/src/exception.cpp +++ b/libcxx/src/exception.cpp @@ -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 { -- cgit v1.2.3