From 3d2aee7545d85a48d45ece509377ffdbbd922026 Mon Sep 17 00:00:00 2001 From: Niels Sascha Reedijk Date: Tue, 14 Sep 2021 20:30:32 +0100 Subject: [PATCH] CppUnit: use instead of the deprecated has been deprecated since C++98. Both GCC 2.95.3 and GCC 8.3 have the successor available, so use that one instead. Change-Id: Ifefe686974864c2fd1d4a9d083294b1edb436fbd --- headers/tools/cppunit/cppunit/Portability.h | 2 +- headers/tools/cppunit/cppunit/config-auto.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/headers/tools/cppunit/cppunit/Portability.h b/headers/tools/cppunit/cppunit/Portability.h index 610098aebe..0cd88c8545 100644 --- a/headers/tools/cppunit/cppunit/Portability.h +++ b/headers/tools/cppunit/cppunit/Portability.h @@ -64,7 +64,7 @@ #if CPPUNIT_HAVE_SSTREAM # include namespace CppUnit { - class OStringStream : public ostringstream + class OStringStream : public std::ostringstream { }; } diff --git a/headers/tools/cppunit/cppunit/config-auto.h b/headers/tools/cppunit/cppunit/config-auto.h index 9d3f28a7de..cd6f7c415c 100644 --- a/headers/tools/cppunit/cppunit/config-auto.h +++ b/headers/tools/cppunit/cppunit/config-auto.h @@ -34,7 +34,9 @@ #endif /* define if the compiler has stringstream */ -/* #undef CPPUNIT_HAVE_SSTREAM */ +#ifndef CPPUNIT_HAVE_SSTREAM +#define CPPUNIT_HAVE_SSTREAM 1 +#endif /* Define if you have the header file. */ #ifndef CPPUNIT_HAVE_STRSTREAM