The next round of MacOS changes contributed by Darrell Walisser.

Starting work on fixing tringle slivers in scenery generation tools.
This commit is contained in:
curt
1999-06-05 12:45:40 +00:00
parent 8f0f79506c
commit d201e9b5c5
5 changed files with 31 additions and 5 deletions
+12 -3
View File
@@ -99,6 +99,14 @@ skipeol( istream& in )
if ( (c == '\n') || (c == '\r') ) {
break;
}
#ifdef __MWERKS__
// also break on '\0'
if ( c == '\0' ) {
break;
}
#endif
}
return in;
@@ -108,13 +116,14 @@ istream&
skipws( istream& in ) {
char c;
while ( in.get(c) ) {
#ifdef __MWERKS__
// -dw- for unix file compatibility
// -clo- this causes problems for unix
#ifdef __MWERKS__
if ( (c == '\n') || (c == '\r') ) {
if ( (c == '\n') || (c == '\r') || (c == '\0') ) {
break;
}
#endif
#endif
if ( ! isspace( c ) ) {
// put pack the non-space character