diff options
author | Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> | 1998-02-24 20:09:55 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-02-24 13:09:55 -0700 |
commit | 3eaa4d3b4dbca86aa581e83f0fb67b10900ff0a5 (patch) | |
tree | f485ddeceda3dbb34f3e39bb297d61e69e0a6445 /libio/filebuf.cc | |
parent | 14e403d46d7cddc753102dd383e7fac7f6ffeecf (diff) | |
download | gcc-3eaa4d3b4dbca86aa581e83f0fb67b10900ff0a5.zip gcc-3eaa4d3b4dbca86aa581e83f0fb67b10900ff0a5.tar.gz gcc-3eaa4d3b4dbca86aa581e83f0fb67b10900ff0a5.tar.bz2 |
Changes for _G_IO_IO_FILE_VERSION == 0x20001:
* libioP.h (_IO_showmanyc_t, _IO_SHOWMANYC, _IO_imbue_t,
_IO_IMBUE): New definitions.
(struct _IO_jump_t): Add __showmanyc and __imbue fields.
(_IO_file_fopen): Add new fourth argument.
* filebuf.cc (filebuf::open): Pass new fourth argument to
_IO_file_fopen.
* iolibio.h (_IO_freopen): Likewise.
* streambuf.cc (streambuf::showmanyc, streambuf::imbue): New
functions.
* streambuf.h (_IO_wchar_t): Define to _G_wchar_t.
(ios::fill): Remove casts.
(struct streambuf): Add showmanyc and imbue members.
* iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >=
1]: Initialize new fields is_char of struct printf_info.
(ostream::operator<<(long double n)) [__GLIBC_MINOR__ >= 1]:
Likewise.
From-SVN: r18222
Diffstat (limited to 'libio/filebuf.cc')
-rw-r--r-- | libio/filebuf.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libio/filebuf.cc b/libio/filebuf.cc index 0cc6749..422d442 100644 --- a/libio/filebuf.cc +++ b/libio/filebuf.cc @@ -131,7 +131,11 @@ filebuf* filebuf::open(const char *filename, ios::openmode mode, int prot) filebuf* filebuf::open(const char *filename, const char *mode) { +#if _G_IO_IO_FILE_VERSION == 0x20001 + return (filebuf*)_IO_file_fopen(this, filename, mode, 0); +#else return (filebuf*)_IO_file_fopen(this, filename, mode); +#endif } filebuf* filebuf::attach(int fd) |