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