From 62ed7592e3e0044daff60fbc83b0404d4fa9a896 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 12 Mar 2002 20:01:54 +0000 Subject: [PATCH] Fixes for Irix compatibility. Fix several long standing irix compiler warnings. --- src/ATC/ATC.hxx | 2 +- src/Cockpit/panel.hxx | 2 +- src/Main/logger.cxx | 4 +++- src/Main/logger.hxx | 2 ++ src/WeatherCM/FGSnowRain.h | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/ATC/ATC.hxx b/src/ATC/ATC.hxx index 1f3028018..d0cd38daf 100644 --- a/src/ATC/ATC.hxx +++ b/src/ATC/ATC.hxx @@ -24,7 +24,7 @@ // Possible types of ATC type that the radios may be tuned to. // INVALID implies not tuned in to anything. -typedef enum atc_type { +enum atc_type { INVALID, ATIS, GROUND, diff --git a/src/Cockpit/panel.hxx b/src/Cockpit/panel.hxx index bde2930a6..c8a58fedf 100644 --- a/src/Cockpit/panel.hxx +++ b/src/Cockpit/panel.hxx @@ -473,7 +473,7 @@ private: class FGTextLayer : public FGInstrumentLayer { public: - typedef enum ChunkType { + enum ChunkType { TEXT, TEXT_VALUE, DOUBLE_VALUE diff --git a/src/Main/logger.cxx b/src/Main/logger.cxx index 3e42f23cb..2c63da8a7 100644 --- a/src/Main/logger.cxx +++ b/src/Main/logger.cxx @@ -5,9 +5,11 @@ #include "logger.hxx" -#include +#include STL_FSTREAM +#ifndef SG_HAVE_NATIVE_SGI_COMPILERS SG_USING_STD(ofstream); SG_USING_STD(endl); +#endif #include SG_USING_STD(string); diff --git a/src/Main/logger.hxx b/src/Main/logger.hxx index cdadc2530..fe2bc7948 100644 --- a/src/Main/logger.hxx +++ b/src/Main/logger.hxx @@ -19,8 +19,10 @@ #include #include +#ifndef SG_HAVE_NATIVE_SGI_COMPILERS #include SG_USING_STD(ostream); +#endif #include SG_USING_STD(vector); diff --git a/src/WeatherCM/FGSnowRain.h b/src/WeatherCM/FGSnowRain.h index bf82101af..ba940cdbf 100644 --- a/src/WeatherCM/FGSnowRain.h +++ b/src/WeatherCM/FGSnowRain.h @@ -52,7 +52,7 @@ HISTORY /****************************************************************************/ /* DEFINES */ /****************************************************************************/ -typedef enum SnowRainType +enum SnowRainType { Rain, Snow,