Support old GCC exception and rtti detection macros
llvm-svn: 273383
This commit is contained in:
parent
88d38802e2
commit
94713d1671
|
@ -71,11 +71,13 @@
|
|||
#define TEST_NOEXCEPT
|
||||
#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
|
||||
#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
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue