diff options
Diffstat (limited to 'src/cppunit')
| -rw-r--r-- | src/cppunit/DefaultProtector.cpp | 2 | ||||
| -rw-r--r-- | src/cppunit/TestCase.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cppunit/DefaultProtector.cpp b/src/cppunit/DefaultProtector.cpp index 6fb306b..fa6ac87 100644 --- a/src/cppunit/DefaultProtector.cpp +++ b/src/cppunit/DefaultProtector.cpp @@ -21,7 +21,7 @@ DefaultProtector::protect( const Functor &functor, catch ( std::exception &e ) { std::string shortDescription( "uncaught exception of type " ); -#if CPPUNIT_USE_TYPEINFO_NAME +#if defined(CPPUNIT_USE_TYPEINFO_NAME) shortDescription += TypeInfoHelper::getClassName( typeid(e) ); #else shortDescription += "std::exception (or derived)."; diff --git a/src/cppunit/TestCase.cpp b/src/cppunit/TestCase.cpp index 13c0525..431a0c5 100644 --- a/src/cppunit/TestCase.cpp +++ b/src/cppunit/TestCase.cpp @@ -5,7 +5,7 @@ #include <cppunit/TestResult.h> #include <stdexcept> -#if CPPUNIT_USE_TYPEINFO_NAME +#if defined(CPPUNIT_USE_TYPEINFO_NAME) # include <typeinfo> #endif |
