X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fzfstream.hxx;h=2b0f10c4d7515bf52fc56d1793cbd3b5b714a4c7;hb=3b3baa996b2485855534f08b68c52f3a40149598;hp=1dd3669e1b1853af6dcfccd72163689b0b975d9a;hpb=e2b4c0787a4398199ef2d35e05963acd58b7a04c;p=simgear.git diff --git a/simgear/misc/zfstream.hxx b/simgear/misc/zfstream.hxx index 1dd3669e..2b0f10c4 100644 --- a/simgear/misc/zfstream.hxx +++ b/simgear/misc/zfstream.hxx @@ -30,17 +30,7 @@ #include -#ifdef HAVE_ZLIB -# include -#else -# include -#endif - -// At least Irix needs this -#ifdef SG_HAVE_NATIVE_SGI_COMPILERS -#include -SG_USING_STD(char_traits); -#endif +#include #ifdef SG_HAVE_STD_INCLUDES @@ -80,8 +70,6 @@ SG_USING_STD(streamoff); #if defined(__GNUC__) && __GNUC_MINOR__ < 8 # define ios_binary ios::bin -#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS ) -# define ios_binary 0 #else # define ios_binary ios::binary #endif @@ -98,7 +86,11 @@ SG_USING_STD(streamoff); /** * A C++ I/O streams interface to the zlib gz* functions. */ +#ifdef SG_NEED_STREAMBUF_HACK +class gzfilebuf : public __streambuf +#else class gzfilebuf : public streambuf +#endif { public: @@ -149,7 +141,7 @@ public: protected: virtual int_type underflow(); - virtual int_type overflow( int_type c = traits_type::eof() ); + virtual int_type overflow( int_type c = streambuf::traits_type::eof() ); private: