diff -urN octave-2.1.36/src/c-file-ptr-stream.h octave-2.1.36-modified/src/c-file-ptr-stream.h --- octave-2.1.36/src/c-file-ptr-stream.h Thu Nov 1 23:12:00 2001 +++ octave-2.1.36-modified/src/c-file-ptr-stream.h Mon Jul 15 11:28:29 2002 @@ -31,13 +31,23 @@ #include #include +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) +# include +#endif + class -c_file_ptr_buf : public std::filebuf +#if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) + c_file_ptr_buf : public __gnu_cxx::stdio_filebuf +#else + c_file_ptr_buf : public std::filebuf +#endif { public: #if !defined (CXX_ISO_COMPLIANT_LIBRARY) typedef int int_type; +#else + typedef std::filebuf::int_type int_type; #endif typedef int (*close_fcn) (FILE *); @@ -47,7 +57,11 @@ c_file_ptr_buf (FILE *f_arg, close_fcn cf_arg = ::fclose) : #if defined __GNUC__ && __GNUC__ >= 3 - std::filebuf (f_arg, std::ios::in | std::ios::out), +# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) + __gnu_cxx::stdio_filebuf (f_arg, std::ios::in | std::ios::out), +# else + std::filebuf (f_arg, std::ios::in | std::ios::out), +#endif #else std::filebuf (f_arg ? fileno (f_arg) : -1), #endif