summaryrefslogtreecommitdiff
path: root/include/cppunit
diff options
context:
space:
mode:
authorSteve M. Robbins <smr@sumost.ca>2001-09-20 03:18:19 +0000
committerSteve M. Robbins <smr@sumost.ca>2001-09-20 03:18:19 +0000
commit285f746224792dedb3120604967dd5c2aee6608d (patch)
tree3109832005c22e060a30b60520bb674ce22a7212 /include/cppunit
parentabe6da3554dd03f04485f2b61152e4dcfcb7a2e6 (diff)
downloadcppunit-285f746224792dedb3120604967dd5c2aee6608d.tar.gz
Improved strstream detection to use header <strstream>, if available.
Diffstat (limited to 'include/cppunit')
-rw-r--r--include/cppunit/Portability.h8
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
{