Borland C++ tweaks.

MacOS/Metrowerks tweaks.
Fix for fgText default constructor.
This commit is contained in:
curt
1999-06-20 01:52:31 +00:00
parent 6b2bf2fa8e
commit bb882a1239
3 changed files with 17 additions and 9 deletions
+13 -2
View File
@@ -118,18 +118,29 @@ skipws( istream& in ) {
while ( in.get(c) ) {
#ifdef __MWERKS__
// -dw- for unix file compatibility
// -clo- this causes problems for unix
if ( (c == '\n') || (c == '\r') || (c == '\0') ) {
break;
}
#endif
}
if ( ! isspace( c ) && c != '\n' ) {
// put pack the non-space character
in.putback(c);
break;
}
#else
if ( ! isspace( c ) ) {
// put pack the non-space character
in.putback(c);
break;
}
#endif
}
return in;
}