Removed raw references to __APPLE__; now just check to see if it is defined.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@177297 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2013-03-18 17:45:34 +00:00
parent a22d2addb1
commit dece7fe670
10 changed files with 16 additions and 16 deletions

View File

@@ -12,7 +12,7 @@
#define __has_include(inc) 0
#endif
#if __APPLE__
#ifdef __APPLE__
#include <cxxabi.h>
#elif defined(LIBCXXRT) || __has_include(<cxxabi.h>)
#include <cxxabi.h>
@@ -50,7 +50,7 @@ std::bad_typeid::what() const _NOEXCEPT
return "std::bad_typeid";
}
#if __APPLE__
#ifdef __APPLE__
// On Darwin, the cxa_bad_* functions cannot be in the lower level library
// because bad_cast and bad_typeid are defined in his higher level library
void __cxxabiv1::__cxa_bad_typeid() { throw std::bad_typeid(); }