1
0
Fork 0

Irix MIPS patches.

This commit is contained in:
curt 2001-03-26 18:22:31 +00:00
parent f1b1077d93
commit 96a9152b02
13 changed files with 38 additions and 26 deletions

View file

@ -23,11 +23,9 @@
# include <config.h>
#endif
#if defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <iostream.h>
#else
# include <iostream>
#endif
#include <simgear/compiler.h>
#include STL_IOSTREAM
#include <simgear/constants.h>
#include <simgear/math/sg_types.hxx>

View file

@ -89,13 +89,17 @@
#include <simgear/compiler.h>
#include <iostream>
#include <fstream>
#include <math.h>
#include STL_FSTREAM
#include STL_IOSTREAM
#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(cout);
#endif
#include "IO360.hxx"
SG_USING_STD(cout);
// Static utility functions

View file

@ -52,11 +52,14 @@
#include <simgear/compiler.h>
#include <iostream>
#include <fstream>
#include <math.h>
#include STL_IOSTREAM
#include STL_FSTREAM
#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(ofstream);
#endif
class FGNewEngine {

View file

@ -28,7 +28,7 @@
#include <simgear/compiler.h>
#include <math.h>
#include <iostream>
#include STL_IOSTREAM
#include "FDM/LaRCsimIC.hxx"
#include <FDM/LaRCsim/ls_cockpit.h>
@ -38,8 +38,10 @@
#include <FDM/LaRCsim/ls_constants.h>
#include <FDM/LaRCsim/ls_geodesy.h>
#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(cout);
SG_USING_STD(endl);
#endif
LaRCsimIC::LaRCsimIC(void) {

View file

@ -51,11 +51,14 @@
#include <simgear/compiler.h>
#include <iostream>
#include <math.h>
#include STL_IOSTREAM
#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(cout);
SG_USING_STD(endl);
#endif
// ------------------------------------------------------------------------
// CODE

View file

@ -43,7 +43,9 @@
#include "joystick.hxx"
SG_USING_STD(string);
#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(cout);
#endif
#ifdef WIN32
static const int MAX_JOYSTICKS = 2;

View file

@ -61,10 +61,10 @@ bool FGFixList::init( SGPath path ) {
#ifdef __MWERKS__
char c = 0;
while ( in.get(c) && c != '\0' && fix.get_ident() != "[End]" ) {
while ( in.get(c) && c != '\0' && fix.get_ident() != (string)"[End]" ) {
in.putback(c);
in >> fix;
if ( fix.get_ident() != "[End]" ) {
if ( fix.get_ident() != (string)"[End]" ) {
fixlist[fix.get_ident()] = fix;
}
in >> skipcomment;
@ -72,7 +72,7 @@ bool FGFixList::init( SGPath path ) {
#else
while ( ! in.eof() && fix.get_ident() != "[End]" ) {
while ( ! in.eof() && fix.get_ident() != (string)"[End]" ) {
in >> fix;
/* cout << "id = " << n.get_ident() << endl;
cout << " type = " << n.get_type() << endl;
@ -81,7 +81,7 @@ bool FGFixList::init( SGPath path ) {
cout << " elev = " << n.get_elev() << endl;
cout << " freq = " << n.get_freq() << endl;
cout << " range = " << n.get_range() << endl; */
if ( fix.get_ident() != "[End]" ) {
if ( fix.get_ident() != (string)"[End]" ) {
fixlist[fix.get_ident()] = fix;
}
in >> skipcomment;

View file

@ -443,7 +443,7 @@ bool FGAtlas::parse_message() {
string alt_units = msg.substr(begin, end - begin);
begin = end + 1;
if ( alt_units != "F" ) {
if ( alt_units != (string)"F" ) {
altitude *= SG_METER_TO_FEET;
}

View file

@ -324,7 +324,7 @@ bool FGGarmin::parse_message() {
string alt_units = msg.substr(begin, end - begin);
begin = end + 1;
if ( alt_units != "F" && alt_units != "f" ) {
if ( alt_units != (string)"F" && alt_units != (string)"f" ) {
altitude *= SG_METER_TO_FEET;
}

View file

@ -427,7 +427,7 @@ bool FGNMEA::parse_message() {
string alt_units = msg.substr(begin, end - begin);
begin = end + 1;
if ( alt_units != "F" ) {
if ( alt_units != (string)"F" ) {
altitude *= SG_METER_TO_FEET;
}

View file

@ -31,12 +31,14 @@
#include <stdlib.h> // atoi() atof()
#include <strstream>
#include STL_STRSTREAM
#include "props.hxx"
#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(cout);
SG_USING_STD(istrstream);
#endif
FGProps::FGProps() {
}

View file

@ -23,11 +23,9 @@
# include <config.h>
#endif
#if defined( SG_HAVE_NATIVE_SGI_COMPILERS )
# include <iostream.h>
#else
# include <iostream>
#endif
#include <simgear/compiler.h>
#include STL_IOSTREAM
#include <simgear/math/sg_types.hxx>

View file

@ -218,7 +218,7 @@ void FGNewCache::fill_in( const SGBucket& b ) {
e->tile_bucket = b;
SGPath tile_path;
if ( globals->get_fg_scenery() != "" ) {
if ( globals->get_fg_scenery() != (string)"" ) {
tile_path.set( globals->get_fg_scenery() );
} else {
tile_path.set( globals->get_fg_root() );