Supports no-RTTI mode on AIX (by Hady Zalek).

This commit is contained in:
zhanyong.wan 2010-03-25 18:57:09 +00:00
parent 92344b762a
commit 2346d25784

View File

@ -333,7 +333,7 @@
#define GTEST_HAS_RTTI 1
#else
#define GTEST_HAS_RTTI 0
#endif // _CPPRTTI
#endif
#elif defined(__GNUC__)
@ -349,6 +349,16 @@
#define GTEST_HAS_RTTI 1
#endif // GTEST_GCC_VER >= 40302
#elif defined(__IBMCPP__)
// IBM Visual Age defines __RTTI_ALL__ to 1 if both the typeid and
// dynamic_cast features are present.
#ifdef __RTTI_ALL__
#define GTEST_HAS_RTTI 1
#else
#define GTEST_HAS_RTTI 0
#endif
#else
// Unknown compiler - assume RTTI is enabled.