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. --- include/cppunit/TestCaller.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cppunit/TestCaller.h') diff --git a/include/cppunit/TestCaller.h b/include/cppunit/TestCaller.h index aba2c27..bbb9002 100644 --- a/include/cppunit/TestCaller.h +++ b/include/cppunit/TestCaller.h @@ -5,7 +5,7 @@ #include -#if CPPUNIT_USE_TYPEINFO_NAME +#if defined(CPPUNIT_USE_TYPEINFO_NAME) # include #endif @@ -33,7 +33,7 @@ struct ExpectedExceptionTraits { static void expectedException() { -#if CPPUNIT_USE_TYPEINFO_NAME +#if defined(CPPUNIT_USE_TYPEINFO_NAME) throw Exception( Message( "expected exception not thrown", "Expected exception type: " + -- cgit v1.2.1