]> git.mxchange.org Git - flightgear.git/commitdiff
A few small updates to make ATC IRIX compliant.
authorcurt <curt>
Thu, 4 Apr 2002 20:47:23 +0000 (20:47 +0000)
committercurt <curt>
Thu, 4 Apr 2002 20:47:23 +0000 (20:47 +0000)
src/ATC/ATC.hxx
src/ATC/approach.cxx
src/ATC/tower.hxx

index 417058edae83348d44dade0723b5cec1d8a557a1..777ccdbd8607cdc19ec6b38c50d11c7c3d17530b 100644 (file)
 
 #include <simgear/compiler.h>
 
-#include <iostream>
-#include <string>
+#include STL_IOSTREAM
+#include STL_STRING
 
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
 SG_USING_STD(ostream);
+#endif
 SG_USING_STD(string);
 
 // Possible types of ATC type that the radios may be tuned to.
index 4423894f76d7949a2164dfdfdd51aee885971582..dee810903152a67706cff07112253ec6fac20465 100644 (file)
@@ -346,8 +346,9 @@ void FGApproach::calc_hd_course_dist(const double &h1, const double &d1,
 int FGApproach::RemovePlane() {
 
   // first check if anything has to be done
+  int i;
   bool rmplane = false;
-  for (int i=0; i<num_planes; i++) {
+  for (i=0; i<num_planes; i++) {
     if (planes[i].dist > range*SG_NM_TO_METER) {
       rmplane = true;
       break;
@@ -357,13 +358,13 @@ int FGApproach::RemovePlane() {
 
   // now make a copy of the plane list
   PlaneApp tmp[max_planes];
-  for (int i=0; i<num_planes; i++) {
+  for (i=0; i<num_planes; i++) {
     tmp[i] = planes[i];
   }
   
   int np = 0;
   // now check which planes are still in range
-  for (int i=0; i<num_planes; i++) {
+  for (i=0; i<num_planes; i++) {
     if (tmp[i].dist <= range*SG_NM_TO_METER) {
       planes[np] = tmp[i];
       np += 1;
index 58ba4d389417fb3fb42635b58e3c6192bf35b479..f4941ce707fb55ae34a78ce3031e9312ce0145ce 100644 (file)
 #include <simgear/math/sg_geodesy.hxx>
 #include <plib/sg.h>
 
-#include <iostream>
-#include <string>
+#include STL_IOSTREAM
+#include STL_STRING
 
 SG_USING_STD(string);
+#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
 SG_USING_STD(ios);
+#endif
 
 #include "ATC.hxx"