cppunit: Enable CPPUNIT_HAVE_SSTREAM for the non-legacy GCC.

This fixes a ton of -Wdeprecateds in the unit tests.
This commit is contained in:
Augustin Cavalier 2022-03-29 19:09:38 -04:00
parent 830f67ef99
commit dcaf47fd7f
2 changed files with 7 additions and 1 deletions

View File

@ -64,7 +64,7 @@
#if CPPUNIT_HAVE_SSTREAM
# include <sstream>
namespace CppUnit {
class OStringStream : public ostringstream
class OStringStream : public std::ostringstream
{
};
}

View File

@ -34,7 +34,13 @@
#endif
/* define if the compiler has stringstream */
#ifndef CPPUNIT_HAVE_SSTREAM
#if __GNUC__ >= 4
#define CPPUNIT_HAVE_SSTREAM 1
#else
/* #undef CPPUNIT_HAVE_SSTREAM */
#endif
#endif
/* Define if you have the <strstream> header file. */
#ifndef CPPUNIT_HAVE_STRSTREAM