]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/awynet.cxx
Rename FGMarkerBeacon to FGMarkerBeacon record, to avoid a clash with the
[flightgear.git] / src / Navaids / awynet.cxx
index 0bc2b7e2f32137e1e001744c5464981d0d10cd44..b2865b4e1066389fd977f6051002e8fbfa8ab5a5 100755 (executable)
@@ -25,6 +25,7 @@
 
 #include <math.h>
 #include <algorithm>
+#include <iostream>
 
 #include <simgear/compiler.h>
 
 
 #include "awynet.hxx"
 
-SG_USING_STD(sort);
+using std::sort;
+
+using std::cerr;
+using std::endl;
 
 /**************************************************************************
  * FGNode
@@ -210,14 +214,7 @@ void FGAirwayNetwork::load(SGPath path)
   in >> skipeol;
 
   // read in each remaining line of the file
-
-#ifdef __MWERKS__
-  char c = 0;
-  while ( in.get(c) && c != '\0' ) {
-    in.putback(c);
-#else
     while ( ! in.eof() ) {
-#endif
       string token;
       in >> token;
 
@@ -227,6 +224,7 @@ void FGAirwayNetwork::load(SGPath path)
       // Read each line from the database
       identStart = token;
       in >> latStart >> lonStart >> identEnd >> latEnd >> lonEnd >> type >> base >> top >> name;
+      in >> skipeol;
       /*out << identStart << " "
        << latStart   << " "
        << lonStart   << " "