summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-03-25 18:57:09 (GMT)
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-03-25 18:57:09 (GMT)
commit2346d25784279f0eb6dfcd4e9ab28ae572baea07 (patch)
treeb474d4f5349cb740472bfb1c3a40dd1245100e59 /include
parent92344b762a86bd73d79a0db8999ece92fb5069fa (diff)
downloadgoogletest-2346d25784279f0eb6dfcd4e9ab28ae572baea07.zip
googletest-2346d25784279f0eb6dfcd4e9ab28ae572baea07.tar.gz
googletest-2346d25784279f0eb6dfcd4e9ab28ae572baea07.tar.bz2
Supports no-RTTI mode on AIX (by Hady Zalek).
Diffstat (limited to 'include')
-rw-r--r--include/gtest/internal/gtest-port.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h
index 1b0b6dc..1b2d2de 100644
--- a/include/gtest/internal/gtest-port.h
+++ b/include/gtest/internal/gtest-port.h
@@ -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.