// $Id$
#include <simgear/compiler.h>
-#include STL_STRING
-
+#include <string>
#include <ctype.h> // isspace()
-
-#ifdef SG_HAVE_STD_INCLUDES
-# include <cerrno>
-#else
-# include <errno.h>
-#endif
+#include <cerrno>
#include "sgstream.hxx"
+using std::string;
+using std::istream;
+
sg_gzifstream::sg_gzifstream()
: istream(&gzbuf)
{
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;
}
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;
while ( in )
{
// skip whitespace
-#ifdef __MWERKS__
- in >> ::skipws;
-#else
in >> skipws;
-#endif
char c;
if ( in.get( c ) && c != '#' )