# 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>
#include <simgear/compiler.h>
-#include <iostream>
-#include <fstream>
#include <math.h>
-#include "IO360.hxx"
+#include STL_FSTREAM
+#include STL_IOSTREAM
+#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(cout);
+#endif
+
+#include "IO360.hxx"
+
// Static utility functions
#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 {
#include <simgear/compiler.h>
#include <math.h>
-#include <iostream>
+#include STL_IOSTREAM
#include "FDM/LaRCsimIC.hxx"
#include <FDM/LaRCsim/ls_cockpit.h>
#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) {
#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
#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;
#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;
#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;
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;
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;
}
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;
}
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;
}
#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() {
}
# 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>
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() );