From 3bf22cb6d0645bf329fec9c850477b2fc9976f6c Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 16 Dec 2016 10:10:22 +0100 Subject: tdf#104498 CPPUNIT_USE_TYPEINFO_NAME is a flag ... so check just for existence. --- src/cppunit/DefaultProtector.cpp | 2 +- src/cppunit/TestCase.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cppunit') 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 #include -#if CPPUNIT_USE_TYPEINFO_NAME +#if defined(CPPUNIT_USE_TYPEINFO_NAME) # include #endif -- cgit v1.2.1