mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
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:
parent
830f67ef99
commit
dcaf47fd7f
@ -64,7 +64,7 @@
|
||||
#if CPPUNIT_HAVE_SSTREAM
|
||||
# include <sstream>
|
||||
namespace CppUnit {
|
||||
class OStringStream : public ostringstream
|
||||
class OStringStream : public std::ostringstream
|
||||
{
|
||||
};
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user