[Cppunit-devel] Automatic CPPUNIT_HAVE_RTTI
Brought to you by:
blep
From: <vri...@us...> - 2005-07-26 09:45:31
|
With Visual C++ 6.0, there is a means to automatically configure CppUnit = usage of RTTI. When the check box "Project Settings > C/C++ > C++ Language > Enable = Run-Time Type Information (RTTI)" is checked, the compiler defines the = symbol _CPPRTTI. CppUnit can easily take advantage of this feature to automatically = define CPPUNIT_HAVE_RTTI without user configuration. In file include\cppunit\config\config-msvc6.h Replace : /* define if the compiler supports Run-Time Type Identification */ #ifndef CPPUNIT_HAVE_RTTI=20 #define CPPUNIT_HAVE_RTTI 1=20 #endif By : /* define if the compiler supports Run-Time Type Identification */ #ifndef CPPUNIT_HAVE_RTTI=20 # ifdef _CPPRTTI // Defined by the compiler option /GR # define CPPUNIT_HAVE_RTTI 1 # else # define CPPUNIT_HAVE_RTTI 0 # endif #endif Vincent. |