From: ehofman Date: Wed, 19 Mar 2003 16:16:47 +0000 (+0000) Subject: improved STL compatibility header files X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=72590e6b8f8dbaeca642b4584e51eb2945250a52;p=simgear.git improved STL compatibility header files --- diff --git a/simgear/compatibility/Makefile.am b/simgear/compatibility/Makefile.am index 8ab827c6..2c0592fe 100644 --- a/simgear/compatibility/Makefile.am +++ b/simgear/compatibility/Makefile.am @@ -9,6 +9,7 @@ include_HEADERS = \ cwchar \ iostream \ strstream \ + sstream \ cassert \ climits \ csignal \ diff --git a/simgear/compatibility/fstream b/simgear/compatibility/fstream index 0cbd4f4a..bcc00e2a 100644 --- a/simgear/compatibility/fstream +++ b/simgear/compatibility/fstream @@ -2,15 +2,17 @@ #ifndef __SG_FSTREAM #define __SG_FSTREAM 1 -# include -# include - # if defined(sgi) && !defined(__GNUC__) +# include + namespace std { using ::fstream; + using ::ifstream; + using ::ofstream; }; + # endif #endif // !__SG_FSTREAM diff --git a/simgear/compatibility/iomanip b/simgear/compatibility/iomanip index 2ebf92cf..7c14a429 100644 --- a/simgear/compatibility/iomanip +++ b/simgear/compatibility/iomanip @@ -4,5 +4,9 @@ # include +namespace std { + using ::setw; +}; + #endif // !__SG_IOMANIP diff --git a/simgear/compatibility/iostream b/simgear/compatibility/iostream index 1bd55f1f..f93908c2 100644 --- a/simgear/compatibility/iostream +++ b/simgear/compatibility/iostream @@ -2,11 +2,12 @@ #ifndef __SG_IOSTREAM #define __SG_IOSTREAM 1 -# include -# include +# include # if defined(sgi) && !defined(__GNUC__) +# include + class ios_base : public ios { public: @@ -29,8 +30,8 @@ using ::istream; using ::ostream; - using ::ifstream; - using ::ofstream; + using ::dec; + using ::hex; }; # endif diff --git a/simgear/compatibility/sstream b/simgear/compatibility/sstream new file mode 100644 index 00000000..6ed18bb7 --- /dev/null +++ b/simgear/compatibility/sstream @@ -0,0 +1,13 @@ + +#ifndef __SG_SSTREAM +#define __SG_SSTREAM 1 + +# include + +namespace std { + typedef ::ostrstream ostringstream; + typedef ::istrstream istringstream; +}; + +#endif // !__SG_SSTREAM +