X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fzfstream.hxx;h=a8635483d9e619c942fe8eed6117dac838e55fba;hb=2e71b64de1d937e2b7c34dd4a2365be455d0b82a;hp=b6c0715ba1d73315e093773113c4a7d18d21d9c0;hpb=733e6fa14ff507a1022ecab8d55cc9bf587bee40;p=simgear.git diff --git a/simgear/misc/zfstream.hxx b/simgear/misc/zfstream.hxx index b6c0715b..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 = traits_type::eof() ); + virtual int_type overflow( int_type c = parent::traits_type::eof() ); private: int_type flushbuf();