1
0
Fork 0

Make sure the __MWERKS__ test can't go unnoticed. It's really time to

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.
This commit is contained in:
mfranz 2007-10-11 09:19:49 +00:00
parent 40fd20d5d4
commit b66ea980ad

View 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);