From dea7f39af1ae5a71adfc0434b111962345193ef2 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 2 Feb 2012 20:48:35 +0000 Subject: Prepare for running on top of new libc++abi. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@149634 91177308-0d34-0410-b5e6-96231b3b80d8 --- src/typeinfo.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/typeinfo.cpp') diff --git a/src/typeinfo.cpp b/src/typeinfo.cpp index 9ca03a183..129998e5c 100644 --- a/src/typeinfo.cpp +++ b/src/typeinfo.cpp @@ -13,6 +13,8 @@ #include "typeinfo" +#ifndef _LIBCPPABI_VERSION + std::bad_cast::bad_cast() _NOEXCEPT { } @@ -48,3 +50,4 @@ std::bad_typeid::what() const _NOEXCEPT void __cxxabiv1::__cxa_bad_cast() { throw std::bad_cast(); } #endif +#endif // _LIBCPPABI_VERSION -- cgit v1.2.3