X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fzfstream.cxx;h=d470ec35e525251de29cd0af562189a10edc48f3;hb=5bab565cfe4c30d6cf08ecaba50af74d5e4f0c98;hp=7dcf701f131002cc8bc1114df8dba5d6f7a475d3;hpb=9f516a8ccc7e6e5865523a87a7950b501f0959be;p=simgear.git diff --git a/simgear/misc/zfstream.cxx b/simgear/misc/zfstream.cxx index 7dcf701f..d470ec35 100644 --- a/simgear/misc/zfstream.cxx +++ b/simgear/misc/zfstream.cxx @@ -24,7 +24,7 @@ #include -#ifdef FG_HAVE_STD_INCLUDES +#ifdef SG_HAVE_STD_INCLUDES # include #else # include @@ -41,7 +41,7 @@ gzfilebuf::gzfilebuf() : streambuf(), file(NULL), -#if defined( __MWERKS__ ) +#if defined( __MWERKS__ ) || __GNUC__ > 2 mode(ios_openmode(0)), #else mode(0), @@ -116,7 +116,7 @@ gzfilebuf::open( const char *name, ios_openmode io_mode ) char char_mode[10]; cvt_iomode( char_mode, io_mode ); if ( (file = gzopen(name, char_mode)) == NULL ) { - perror( "gzfilebuf::open(): " ); + // perror( "gzfilebuf::open(): " ); errno = 0; return NULL; }