]> git.mxchange.org Git - flightgear.git/commitdiff
Fixes for Irix compatibility.
authorcurt <curt>
Tue, 12 Mar 2002 20:01:54 +0000 (20:01 +0000)
committercurt <curt>
Tue, 12 Mar 2002 20:01:54 +0000 (20:01 +0000)
Fix several long standing irix compiler warnings.

src/ATC/ATC.hxx
src/Cockpit/panel.hxx
src/Main/logger.cxx
src/Main/logger.hxx
src/WeatherCM/FGSnowRain.h

index 1f3028018fe88f02fb53568ea9f0d2f583d207c6..d0cd38dafb9c71651fe6023e3662ba245d87fd80 100644 (file)
@@ -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,
index bde2930a6d47b957db7af1d46f20e44561f0b732..c8a58fedfe1d8da7696905a007b18896f10c6e86 100644 (file)
@@ -473,7 +473,7 @@ private:
 class FGTextLayer : public FGInstrumentLayer
 {
 public:
-  typedef enum ChunkType {
+  enum ChunkType {
     TEXT,
     TEXT_VALUE,
     DOUBLE_VALUE
index 3e42f23cbc774910284ae701a204b9f239162e28..2c63da8a755a7b4d31f74e0001133418a81c80e9 100644 (file)
@@ -5,9 +5,11 @@
 
 #include "logger.hxx"
 
-#include <fstream>
+#include STL_FSTREAM
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
 SG_USING_STD(ofstream);
 SG_USING_STD(endl);
+#endif
 
 #include <string>
 SG_USING_STD(string);
index cdadc25306c45685a2f990251e1adb8b54565e8a..fe2bc7948db8e33704a40d2a7137f42d0fa04c78 100644 (file)
 #include <simgear/misc/exception.hxx>
 #include <simgear/misc/props.hxx>
 
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
 #include <iostream>
 SG_USING_STD(ostream);
+#endif
 
 #include <vector>
 SG_USING_STD(vector);
index bf82101af73dee84837263ed87d116a4ac5f38f7..ba940cdbfe05bab6d72c1b750846f13514d6675f 100644 (file)
@@ -52,7 +52,7 @@ HISTORY
 /****************************************************************************/
 /* DEFINES                                                                 */
 /****************************************************************************/
-typedef enum SnowRainType
+enum SnowRainType
 {
     Rain,
     Snow,