Obviously needed for building but missing in the new tree.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@177 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2002-07-13 16:44:13 +00:00
parent cdbcdb71d9
commit 97558ac202
2 changed files with 48 additions and 0 deletions
@@ -0,0 +1,24 @@
/*
* _sstream
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
*/
#if __MWERKS__
#include <sstream>
#else
#ifndef __SSTREAM_H
#define __SSTREAM_H
#include <strstream>
#include <string>
class ostringstream : public ostrstream {
public:
ostringstream() : ostrstream() {}
~ostringstream() { delete [] ostrstream::str(); }
string str() { *this << ends; return string(ostrstream::str()); }
};
#endif /* __SSTREAM_H */
#endif /* USING_STRSTREAM */
@@ -0,0 +1,24 @@
/*
* _sstream
* Copyright 1999 Y.Takagi. All Rights Reserved.
*/
#if __MWERKS__
#include <sstream>
#else
#ifndef __SSTREAM_H
#define __SSTREAM_H
#include <strstream>
#include <string>
class ostringstream : public ostrstream {
public:
ostringstream() : ostrstream() {}
~ostringstream() { delete [] ostrstream::str(); }
string str() { *this << ends; return string(ostrstream::str()); }
};
#endif /* __SSTREAM_H */
#endif /* USING_STRSTREAM */