From d3e2acd9fb3649ec5a946fc93f431abe49f7f297 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Sat, 30 Jul 2005 05:54:13 +0000 Subject: include/cppunit/config/config-msvc6.h: auto-detect if RTTI are enabled the _CPPRTTI macro (defined by the compiler when enabling RTTI). --- include/cppunit/config/config-msvc6.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/cppunit') 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 */ -- cgit v1.2.1