X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2Fnavdb.cxx;h=f7a2761f3dc67ee64db562624c91c7990db9d086;hb=4022edc5ba91cfedec45f8a39ff8f41d20f3f34e;hp=808ff80b4233cb4ebb9e7ab2f8c1ac63836e9d27;hpb=6e72aa6a574d2fb42ba818d6531cf305c61d7dde;p=flightgear.git diff --git a/src/Navaids/navdb.cxx b/src/Navaids/navdb.cxx index 808ff80b4..f7a2761f3 100644 --- a/src/Navaids/navdb.cxx +++ b/src/Navaids/navdb.cxx @@ -74,16 +74,19 @@ bool fgNavDBInit( FGAirportList *airports, in >> skipeol; -//#ifdef __MWERKS_ -// -// FIXME -- Please complain to the FlightGear mailing list, if you still need this hack. -// -// char c = 0; -// while ( in.get(c) && c != '\0' ) { -// in.putback(c); -//#else +#ifdef __MWERKS__ + + FIXME -- Please report to the FlightGear mailing list, if you still use a + compiler identifying itself as __MWERKS__ that needs this hack. + There are 41 instances of it in the SimGear & FilghtGear code, + and they are scheduled for removal. + + char c = 0; + while ( in.get(c) && c != '\0' ) { + in.putback(c); +#else while ( ! in.eof() ) { -//#endif +#endif FGNavRecord *r = new FGNavRecord; in >> (*r);