Maybe a more portable way to do it
This commit is contained in:
@@ -50,11 +50,13 @@
|
|||||||
* A C++ I/O streams interface to the zlib gz* functions.
|
* A C++ I/O streams interface to the zlib gz* functions.
|
||||||
*/
|
*/
|
||||||
#ifdef SG_NEED_STREAMBUF_HACK
|
#ifdef SG_NEED_STREAMBUF_HACK
|
||||||
class gzfilebuf : public __streambuf
|
class gzfilebuf : public __streambuf {
|
||||||
|
typedef __streambuf parent;
|
||||||
#else
|
#else
|
||||||
class gzfilebuf : public std::streambuf
|
class gzfilebuf : public std::streambuf {
|
||||||
|
typedef std::streambuf parent;
|
||||||
#endif
|
#endif
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
/** Constructor */
|
/** Constructor */
|
||||||
gzfilebuf();
|
gzfilebuf();
|
||||||
@@ -97,7 +99,7 @@ protected:
|
|||||||
|
|
||||||
virtual int_type underflow();
|
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:
|
private:
|
||||||
|
|
||||||
int_type flushbuf();
|
int_type flushbuf();
|
||||||
|
|||||||
Reference in New Issue
Block a user