diff options
Diffstat (limited to 'include/cppunit')
| -rw-r--r-- | include/cppunit/Portability.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 <strstream.h> +#if CPPUNIT_HAVE_CLASS_STRSTREAM +# if CPPUNIT_HAVE_STRSTREAM +# include <strstream> +# else +# include <strstream.h> +# endif namespace CppUnit { class OStringStream : public std::ostrstream { |
