From 29275ce1ecf9c4ea302aacca8c5ae5d4d3319a17 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 6 Mar 2001 22:36:59 +0000 Subject: [PATCH] Tweaks for Mips Irix compilers. --- src/Cockpit/panel_io.cxx | 11 +++++++---- src/Cockpit/panel_io.hxx | 8 ++++++-- src/WeatherCM/FGPhysicalProperties.h | 2 +- tests/test-up.cxx | 4 +++- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/Cockpit/panel_io.cxx b/src/Cockpit/panel_io.cxx index 8123c3f97..0e395a31c 100644 --- a/src/Cockpit/panel_io.cxx +++ b/src/Cockpit/panel_io.cxx @@ -27,13 +27,14 @@ #endif #include + #include #include #include -#include -#include -#include +#include STL_IOSTREAM +#include STL_FSTREAM +#include STL_STRING #include
#include
@@ -42,8 +43,10 @@ #include "steam.hxx" #include "panel_io.hxx" +#if !defined (FG_HAVE_NATIVE_SGI_COMPILERS) FG_USING_STD(istream); FG_USING_STD(ifstream); +#endif FG_USING_STD(string); @@ -353,7 +356,7 @@ readTransformation (const SGPropertyNode * node, float hscale, float vscale) type = "rotation"; } - if (propName != "") { + if (propName != (string)"") { value = fgGetValue(propName, true); } diff --git a/src/Cockpit/panel_io.hxx b/src/Cockpit/panel_io.hxx index 6e53bd1ba..5d0d56c08 100644 --- a/src/Cockpit/panel_io.hxx +++ b/src/Cockpit/panel_io.hxx @@ -29,11 +29,15 @@ # include #endif -#include +#include + +#include STL_IOSTREAM #include "panel.hxx" -using std::istream; +#if !defined (FG_HAVE_NATIVE_SGI_COMPILERS) +FG_USING_STD(istream); +#endif extern FGPanel * fgReadPanel (istream &input); extern FGPanel * fgReadPanel (const string &relative_path); diff --git a/src/WeatherCM/FGPhysicalProperties.h b/src/WeatherCM/FGPhysicalProperties.h index 5c50c77e9..d93796e11 100644 --- a/src/WeatherCM/FGPhysicalProperties.h +++ b/src/WeatherCM/FGPhysicalProperties.h @@ -63,7 +63,7 @@ HISTORY # include #endif -#include +#include STL_IOSTREAM #include #include diff --git a/tests/test-up.cxx b/tests/test-up.cxx index 9564720b8..96fb2c341 100644 --- a/tests/test-up.cxx +++ b/tests/test-up.cxx @@ -1,6 +1,8 @@ // do some test relating to the concept of "up" -#include +#include + +#include STL_IOSTREAM #include -- 2.39.5