X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fsgstream.cxx;h=6d5352c86ae2a6f1cefa845cd3d6cfb6df648318;hb=2e71b64de1d937e2b7c34dd4a2365be455d0b82a;hp=4a1e03223347ea446873b65f3084538b95c59f82;hpb=dcb95d131bc6aef1abe25d1f415e309f06e52436;p=simgear.git diff --git a/simgear/misc/sgstream.cxx b/simgear/misc/sgstream.cxx index 4a1e0322..6d5352c8 100644 --- a/simgear/misc/sgstream.cxx +++ b/simgear/misc/sgstream.cxx @@ -21,18 +21,15 @@ // $Id$ #include -#include STL_STRING - +#include #include // isspace() - -#ifdef SG_HAVE_STD_INCLUDES -# include -#else -# include -#endif +#include #include "sgstream.hxx" +using std::string; +using std::istream; + sg_gzifstream::sg_gzifstream() : istream(&gzbuf) { @@ -106,11 +103,7 @@ skipeol( istream& in ) char c = '\0'; // skip to end of line. -#ifdef __MWERKS__ - while ( in.get(c) && c != '\0' ) { -#else while ( in.get(c) ) { -#endif if ( (c == '\n') || (c == '\r') ) { break; } @@ -122,17 +115,9 @@ skipeol( istream& in ) istream& skipws( istream& in ) { char c; -#ifdef __MWERKS__ - while ( in.get(c) && c != '\0' ) { -#else while ( in.get(c) ) { -#endif -#ifdef __MWERKS__ - if ( ! isspace( c ) && c != '\n' ) { -#else if ( ! isspace( c ) ) { -#endif // put pack the non-space character in.putback(c); break; @@ -147,11 +132,7 @@ skipcomment( istream& in ) while ( in ) { // skip whitespace -#ifdef __MWERKS__ - in >> ::skipws; -#else in >> skipws; -#endif char c; if ( in.get( c ) && c != '#' )