2
0
mirror of https://github.com/boostorg/context.git synced 2026-01-19 04:02:17 +00:00

abi::__forced_unwind is only part of gnu's libstc++

This commit is contained in:
Oliver Kowalke
2019-03-17 15:49:35 +01:00
parent 42ac510319
commit fa50eb9d33

View File

@@ -115,17 +115,9 @@ static constexpr std::size_t cacheline_length{ 64 };
static constexpr std::size_t prefetch_stride{ 4 * cacheline_length };
#endif
// __has_include is currently supported by GCC and Clang. However GCC 4.9 may have issues and
// returns 1 for 'defined( __has_include )', while '__has_include' is actually not supported:
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63662
#if !defined(__APPLE__) && !defined(__MACH__ )
# if defined(__has_include) && (!defined(BOOST_GCC) || (__GNUC__ + 0) >= 5)
# if __has_include(<cxxabi.h>)
# define BOOST_CONTEXT_HAS_CXXABI_H
# endif
# elif defined(__GLIBCXX__) || defined(__GLIBCPP__)
#if defined(__GLIBCPP__) || defined(__GLIBCXX__)
// GNU libstdc++ 3
# define BOOST_CONTEXT_HAS_CXXABI_H
# endif
#endif
#if defined( BOOST_CONTEXT_HAS_CXXABI_H )