improved STL compatibility header files
This commit is contained in:
@@ -9,6 +9,7 @@ include_HEADERS = \
|
|||||||
cwchar \
|
cwchar \
|
||||||
iostream \
|
iostream \
|
||||||
strstream \
|
strstream \
|
||||||
|
sstream \
|
||||||
cassert \
|
cassert \
|
||||||
climits \
|
climits \
|
||||||
csignal \
|
csignal \
|
||||||
|
|||||||
@@ -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,5 +4,9 @@
|
|||||||
|
|
||||||
# include <iomanip.h>
|
# include <iomanip.h>
|
||||||
|
|
||||||
|
namespace std {
|
||||||
|
using ::setw;
|
||||||
|
};
|
||||||
|
|
||||||
#endif // !__SG_IOMANIP
|
#endif // !__SG_IOMANIP
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
#ifndef __SG_SSTREAM
|
||||||
|
#define __SG_SSTREAM 1
|
||||||
|
|
||||||
|
# include <strstream>
|
||||||
|
|
||||||
|
namespace std {
|
||||||
|
typedef ::ostrstream ostringstream;
|
||||||
|
typedef ::istrstream istringstream;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // !__SG_SSTREAM
|
||||||
|
|
||||||
Reference in New Issue
Block a user