Vincent Rivi=E8re wrote:
> 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
> #define CPPUNIT_HAVE_RTTI 1
> #endif
>
> By :
>
> /* define if the compiler supports Run-Time Type Identification */
> #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
Just committed,
Thanks Vincent !
>
> Vincent.
---
Baptiste Lepilleur <bl...@us...>
CppUnit maintainer
OpenTest and CppUnit 2 developer.=20
|