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++. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@173165 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7173a501bb
commit
e0f0bfb5e6
@ -33,7 +33,7 @@
|
|||||||
#if defined(LIBCXXRT) || defined(_LIBCPPABI_VERSION)
|
#if defined(LIBCXXRT) || defined(_LIBCPPABI_VERSION)
|
||||||
#define HAVE_DEPENDENT_EH_ABI 1
|
#define HAVE_DEPENDENT_EH_ABI 1
|
||||||
#endif
|
#endif
|
||||||
#else // __has_include(<cxxabi.h>)
|
#elif !defined(__GLIBCXX__) // __has_include(<cxxabi.h>)
|
||||||
static std::terminate_handler __terminate_handler;
|
static std::terminate_handler __terminate_handler;
|
||||||
static std::unexpected_handler __unexpected_handler;
|
static std::unexpected_handler __unexpected_handler;
|
||||||
#endif // __has_include(<cxxabi.h>)
|
#endif // __has_include(<cxxabi.h>)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user