Support old GCC exception and rtti detection macros
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@273383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -71,11 +71,13 @@
|
|||||||
#define TEST_NOEXCEPT
|
#define TEST_NOEXCEPT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !TEST_HAS_FEATURE(cpp_rtti) && !defined(__cpp_rtti)
|
#if !TEST_HAS_FEATURE(cpp_rtti) && !defined(__cpp_rtti) \
|
||||||
|
&& !defined(__GXX_RTTI)
|
||||||
#define TEST_HAS_NO_RTTI
|
#define TEST_HAS_NO_RTTI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !TEST_HAS_FEATURE(cpp_exceptions) && !defined(__cpp_exceptions)
|
#if !TEST_HAS_FEATURE(cpp_exceptions) && !defined(__cpp_exceptions) \
|
||||||
|
&& !defined(__EXCEPTIONS)
|
||||||
#define TEST_HAS_NO_EXCEPTIONS
|
#define TEST_HAS_NO_EXCEPTIONS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user