summaryrefslogtreecommitdiff
path: root/include/cppunit
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2005-07-30 05:54:13 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2005-07-30 05:54:13 +0000
commitd3e2acd9fb3649ec5a946fc93f431abe49f7f297 (patch)
treea0a0a45083211240b0e0daa52cabcb67be2668c9 /include/cppunit
parent1e224c765eeb0cd576d16d2c9c5791bdf475acfa (diff)
downloadcppunit-d3e2acd9fb3649ec5a946fc93f431abe49f7f297.tar.gz
include/cppunit/config/config-msvc6.h: auto-detect if RTTI are enabled
the _CPPRTTI macro (defined by the compiler when enabling RTTI).
Diffstat (limited to 'include/cppunit')
-rw-r--r--include/cppunit/config/config-msvc6.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/cppunit/config/config-msvc6.h b/include/cppunit/config/config-msvc6.h
index 51df8af..b2664e8 100644
--- a/include/cppunit/config/config-msvc6.h
+++ b/include/cppunit/config/config-msvc6.h
@@ -31,8 +31,12 @@
#endif
/* define if the compiler supports Run-Time Type Identification */
-#ifndef CPPUNIT_HAVE_RTTI
-#define CPPUNIT_HAVE_RTTI 1
+#ifndef CPPUNIT_HAVE_RTTI
+# ifdef _CPPRTTI // Defined by the compiler option /GR
+# define CPPUNIT_HAVE_RTTI 1
+# else
+# define CPPUNIT_HAVE_RTTI 0
+# endif
#endif
/* Define to 1 to use type_info::name() for class names */