]> git.mxchange.org Git - simgear.git/commitdiff
Maybe a more portable way to do it
authorfredb <fredb>
Fri, 25 Jul 2008 21:33:54 +0000 (21:33 +0000)
committerfredb <fredb>
Fri, 25 Jul 2008 21:33:54 +0000 (21:33 +0000)
simgear/misc/zfstream.hxx

index f5a4d2fc14933b717033d955a95c51bf3588d432..a8635483d9e619c942fe8eed6117dac838e55fba 100644 (file)
  * 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();