Mercurial > hg > octave-nkf
diff src/c-file-ptr-stream.h @ 3841:bbe74a066592
[project @ 2001-06-27 02:29:03 by jwe]
author | jwe |
---|---|
date | Wed, 27 Jun 2001 02:29:04 +0000 |
parents | 13905c3a24af |
children | 818f5aec1db5 |
line wrap: on
line diff
--- a/src/c-file-ptr-stream.h +++ b/src/c-file-ptr-stream.h @@ -46,11 +46,10 @@ c_file_ptr_buf (FILE *f_arg, close_fcn cf_arg = ::fclose) : -#ifdef __SUNPRO_CC - std::filebuf (f_arg ? fileno (f_arg) : -1), +#if defined __GNUC__ && __GNUC__ >= 3 + std::filebuf (f_arg, std::ios::in | std::ios::out), #else - std::filebuf (f_arg ? fileno (f_arg) : -1, - 0, std::ios::in | std::ios::out), + std::filebuf (f_arg ? fileno (f_arg) : -1), #endif f (f_arg), cf (cf_arg), fd (f_arg ? fileno (f_arg) : -1)