From 285f746224792dedb3120604967dd5c2aee6608d Mon Sep 17 00:00:00 2001 From: "Steve M. Robbins" Date: Thu, 20 Sep 2001 03:18:19 +0000 Subject: Improved strstream detection to use header , if available. --- include/cppunit/Portability.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/cppunit') diff --git a/include/cppunit/Portability.h b/include/cppunit/Portability.h index 17fdbf8..2fa2bbe 100644 --- a/include/cppunit/Portability.h +++ b/include/cppunit/Portability.h @@ -44,8 +44,12 @@ typedef std::ostringstream OStringStream; } #else -#if CPPUNIT_HAVE_STRSTREAM -# include +#if CPPUNIT_HAVE_CLASS_STRSTREAM +# if CPPUNIT_HAVE_STRSTREAM +# include +# else +# include +# endif namespace CppUnit { class OStringStream : public std::ostrstream { -- cgit v1.2.1