From 6997a645c92f3e9bb8d59736305cef948894f9bc Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 4 Apr 2002 20:47:23 +0000 Subject: [PATCH] A few small updates to make ATC IRIX compliant. --- src/ATC/ATC.hxx | 6 ++++-- src/ATC/approach.cxx | 7 ++++--- src/ATC/tower.hxx | 6 ++++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/ATC/ATC.hxx b/src/ATC/ATC.hxx index 417058eda..777ccdbd8 100644 --- a/src/ATC/ATC.hxx +++ b/src/ATC/ATC.hxx @@ -24,10 +24,12 @@ #include -#include -#include +#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. diff --git a/src/ATC/approach.cxx b/src/ATC/approach.cxx index 4423894f7..dee810903 100644 --- a/src/ATC/approach.cxx +++ b/src/ATC/approach.cxx @@ -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 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 #include -#include -#include +#include STL_IOSTREAM +#include STL_STRING SG_USING_STD(string); +#ifndef SG_HAVE_NATIVE_SGI_COMPILERS SG_USING_STD(ios); +#endif #include "ATC.hxx" -- 2.39.5