Patches from Erik Hofman for SGI compatibility:
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.
This commit is contained in:
parent
78411d29a7
commit
6cf3b54b4b
@ -3,6 +3,15 @@
|
||||
#define __SG_FSTREAM 1
|
||||
|
||||
# include <fstream.h>
|
||||
# include <iostream>
|
||||
|
||||
# if defined(sgi) && !defined(__GNUC__)
|
||||
|
||||
namespace std {
|
||||
using ::fstream;
|
||||
};
|
||||
|
||||
# endif
|
||||
|
||||
#endif // !__SG_FSTREAM
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
# include <iostream.h>
|
||||
# include <fstream.h>
|
||||
|
||||
#if defined(sgi) && !defined(__GNUC__)
|
||||
# if defined(sgi) && !defined(__GNUC__)
|
||||
|
||||
class ios_base : public ios {
|
||||
public:
|
||||
@ -23,7 +23,9 @@
|
||||
using ::clog;
|
||||
using ::endl;
|
||||
|
||||
using ::ios;
|
||||
using ::ios_base;
|
||||
using ::iostream;
|
||||
using ::istream;
|
||||
using ::ostream;
|
||||
|
||||
@ -31,7 +33,7 @@
|
||||
using ::ofstream;
|
||||
};
|
||||
|
||||
#endif
|
||||
# endif
|
||||
|
||||
#endif // !__SG_IOSTREAM
|
||||
|
||||
|
@ -4,14 +4,14 @@
|
||||
|
||||
# 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
|
||||
|
||||
|
@ -23,7 +23,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
#if defined(sgi) && !defined(__GNUC__)
|
||||
# if defined(sgi) && !defined(__GNUC__)
|
||||
|
||||
# define pubsync sync
|
||||
|
||||
@ -32,7 +32,7 @@ public:
|
||||
using ::streampos;
|
||||
using ::streamoff;
|
||||
};
|
||||
#endif
|
||||
# endif
|
||||
|
||||
#endif // !__SG_STREAMBUF
|
||||
|
||||
|
@ -4,5 +4,17 @@
|
||||
|
||||
# include <strstream.h>
|
||||
|
||||
# if defined(sgi) && !defined(__GNUC__)
|
||||
|
||||
namespace std {
|
||||
using ::ends;
|
||||
|
||||
using ::strstream;
|
||||
using ::istrstream;
|
||||
using ::ostrstream;
|
||||
};
|
||||
|
||||
# endif
|
||||
|
||||
#endif // !__SG_STRSTREAM
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user