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
+1
View File
@@ -9,6 +9,7 @@ include_HEADERS = \
cwchar \ cwchar \
iostream \ iostream \
strstream \ strstream \
sstream \
cassert \ cassert \
climits \ climits \
csignal \ csignal \
+5 -3
View File
@@ -2,15 +2,17 @@
#ifndef __SG_FSTREAM #ifndef __SG_FSTREAM
#define __SG_FSTREAM 1 #define __SG_FSTREAM 1
# include <fstream.h>
# include <iostream>
# if defined(sgi) && !defined(__GNUC__) # if defined(sgi) && !defined(__GNUC__)
# include <fstream.h>
namespace std { namespace std {
using ::fstream; using ::fstream;
using ::ifstream;
using ::ofstream;
}; };
# endif # endif
#endif // !__SG_FSTREAM #endif // !__SG_FSTREAM
+4
View File
@@ -4,5 +4,9 @@
# include <iomanip.h> # include <iomanip.h>
namespace std {
using ::setw;
};
#endif // !__SG_IOMANIP #endif // !__SG_IOMANIP
+5 -4
View File
@@ -2,11 +2,12 @@
#ifndef __SG_IOSTREAM #ifndef __SG_IOSTREAM
#define __SG_IOSTREAM 1 #define __SG_IOSTREAM 1
# include <iostream.h> # include <fstream>
# include <fstream.h>
# if defined(sgi) && !defined(__GNUC__) # if defined(sgi) && !defined(__GNUC__)
# include <iostream.h>
class ios_base : public ios { class ios_base : public ios {
public: public:
@@ -29,8 +30,8 @@
using ::istream; using ::istream;
using ::ostream; using ::ostream;
using ::ifstream; using ::dec;
using ::ofstream; using ::hex;
}; };
# endif # endif
+13
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