From 433be0e46bc587d406aab1e00eaac663b63dffd0 Mon Sep 17 00:00:00 2001 From: fredb Date: Fri, 25 Jul 2008 21:33:54 +0000 Subject: [PATCH] Maybe a more portable way to do it --- simgear/misc/zfstream.hxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/simgear/misc/zfstream.hxx b/simgear/misc/zfstream.hxx index f5a4d2fc..a8635483 100644 --- a/simgear/misc/zfstream.hxx +++ b/simgear/misc/zfstream.hxx @@ -50,11 +50,13 @@ * A C++ I/O streams interface to the zlib gz* functions. */ #ifdef SG_NEED_STREAMBUF_HACK -class gzfilebuf : public __streambuf +class gzfilebuf : public __streambuf { + typedef __streambuf parent; #else -class gzfilebuf : public std::streambuf +class gzfilebuf : public std::streambuf { + typedef std::streambuf parent; #endif -{ + public: /** Constructor */ gzfilebuf(); @@ -97,7 +99,7 @@ protected: virtual int_type underflow(); - virtual int_type overflow( int_type c = std::streambuf::traits_type::eof() ); + virtual int_type overflow( int_type c = parent::traits_type::eof() ); private: int_type flushbuf();