Saleem Abdulrasool: __terminate_handler and __unexpected_handler are defined but not used when

building against libsupc++ as the functions for which they are used are provided
by libsupc++.  Simply preprocess them away when building against libsupc++.

llvm-svn: 173165
This commit is contained in:
Howard Hinnant 2013-01-22 14:48:10 +00:00
parent 2ac1ae6150
commit f55c0db8b5
1 changed files with 1 additions and 1 deletions

View File

@ -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>)