improved STL compatibility header files

This commit is contained in:
ehofman
2003-03-19 16:16:47 +00:00
parent 3e81ca7da5
commit 72590e6b8f
5 changed files with 28 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ include_HEADERS = \
cwchar \
iostream \
strstream \
sstream \
cassert \
climits \
csignal \

View File

@@ -2,15 +2,17 @@
#ifndef __SG_FSTREAM
#define __SG_FSTREAM 1
# include <fstream.h>
# include <iostream>
# if defined(sgi) && !defined(__GNUC__)
# include <fstream.h>
namespace std {
using ::fstream;
using ::ifstream;
using ::ofstream;
};
# endif
#endif // !__SG_FSTREAM

View File

@@ -4,5 +4,9 @@
# include <iomanip.h>
namespace std {
using ::setw;
};
#endif // !__SG_IOMANIP

View File

@@ -2,11 +2,12 @@
#ifndef __SG_IOSTREAM
#define __SG_IOSTREAM 1
# include <iostream.h>
# include <fstream.h>
# include <fstream>
# if defined(sgi) && !defined(__GNUC__)
# include <iostream.h>
class ios_base : public ios {
public:
@@ -29,8 +30,8 @@
using ::istream;
using ::ostream;
using ::ifstream;
using ::ofstream;
using ::dec;
using ::hex;
};
# endif

View File

@@ -0,0 +1,13 @@
#ifndef __SG_SSTREAM
#define __SG_SSTREAM 1
# include <strstream>
namespace std {
typedef ::ostrstream ostringstream;
typedef ::istrstream istringstream;
};
#endif // !__SG_SSTREAM