#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.
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;
// 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;