]> git.mxchange.org Git - flightgear.git/commitdiff
Make sure the __MWERKS__ test can't go unnoticed. It's really time to
authormfranz <mfranz>
Thu, 11 Oct 2007 09:19:49 +0000 (09:19 +0000)
committermfranz <mfranz>
Thu, 11 Oct 2007 09:19:49 +0000 (09:19 +0000)
remove all those 41 hacks if possible. Metrowerks is under category
"Defunct software companies" in Wikipedia, its compiler was known to
work on PowerPC (which we don't support, anway, right?) and on some
Unices. The hacks are in CVS since the first commit 2002/9/10 (old
repository!) and probably were in the code long before that. Any
platform where such a broken compiler is still used, will hardly
be suitable to run fgfs at all.

src/Navaids/navdb.cxx

index 808ff80b4233cb4ebb9e7ab2f8c1ac63836e9d27..e6e6b8980410f7e98ee3f5992f40934c72ede2ee 100644 (file)
@@ -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);