Some more cmall changes to the SimGear header files and removed the
SG_HAVE_NATIVE_SGI_COMPILERS dependancies from FlightGear.
I've added a seperate JSBSim patch for the JSBSim source tree.
#define __SG_FSTREAM 1
# include <fstream.h>
+# include <iostream>
+
+# if defined(sgi) && !defined(__GNUC__)
+
+ namespace std {
+ using ::fstream;
+ };
+
+# endif
#endif // !__SG_FSTREAM
# include <iostream.h>
# include <fstream.h>
-#if defined(sgi) && !defined(__GNUC__)
+# if defined(sgi) && !defined(__GNUC__)
class ios_base : public ios {
public:
using ::clog;
using ::endl;
+ using ::ios;
using ::ios_base;
+ using ::iostream;
using ::istream;
using ::ostream;
using ::ofstream;
};
-#endif
+# endif
#endif // !__SG_IOSTREAM
# include <iostream>
-#if defined(sgi) && !defined(__GNUC__)
+# if defined(sgi) && !defined(__GNUC__)
# include <stream.h>
# include <string>
using std::getline;
-#endif
+# endif
#endif // !__SG_ISTREAM
};
-#if defined(sgi) && !defined(__GNUC__)
+# if defined(sgi) && !defined(__GNUC__)
# define pubsync sync
using ::streampos;
using ::streamoff;
};
-#endif
+# endif
#endif // !__SG_STREAMBUF
# include <strstream.h>
+# if defined(sgi) && !defined(__GNUC__)
+
+ namespace std {
+ using ::ends;
+
+ using ::strstream;
+ using ::istrstream;
+ using ::ostrstream;
+ };
+
+# endif
+
#endif // !__SG_STRSTREAM