summaryrefslogtreecommitdiff
path: root/libio/streambuf.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-01 12:29:15 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-01 12:29:15 +0000
commit660426353bcfabbe622e49d5fdd04e79272c3d55 (patch)
tree7f82432d8e5d72c64bd5ab979676321ca1746dc6 /libio/streambuf.h
parent4dd476d49b5d9edeb46c8ba15b0969ed032bf1da (diff)
downloadgcc-660426353bcfabbe622e49d5fdd04e79272c3d55.tar.gz
* filebuf.cc (filebuf::open): Call _IO_file_open if
_G_HAVE_IO_FILE_OPEN is 1. * libio.h (_IO_fpos64_t, _IO_off64_t): Defined if _G_IO_IO_FILE_VERSION == 0x20001. * libioP.h (_IO_file_open): New declaration. * libio.h (_IO_FILE, _IO_stdin_, _IO_stdout_, _IO_stderr_, _IO_seekoff, _IO_seekpos): Add support for libio in egcs 2.1. * libioP.h (_IO_seekoff_t, _IO_seekpos_t, _IO_seek_t, _IO_seekoff, _IO_seekpos, _IO_default_seekoff, _IO_default_seekpos, _IO_default_seek, _IO_file_seekoff, _IO_file_seek, _IO_str_seekoff, _IO_pos_BAD, _IO_pos_as_off, _IO_pos_0): Ditto. * streambuf.h (streamoff, streampos): Ditto. * gen-params (__extension__): Use only if gcc version >= 2.8. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17580 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio/streambuf.h')
-rw-r--r--libio/streambuf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libio/streambuf.h b/libio/streambuf.h
index dfee0984a64..9ef47243be6 100644
--- a/libio/streambuf.h
+++ b/libio/streambuf.h
@@ -66,8 +66,13 @@ class ostream; class streambuf;
#undef open
#undef close
+#if defined(_G_IO_IO_FILE_VERSION) && _G_IO_IO_FILE_VERSION == 0x20001
+typedef _IO_off64_t streamoff;
+typedef _IO_fpos64_t streampos;
+#else
typedef _IO_off_t streamoff;
typedef _IO_fpos_t streampos;
+#endif
typedef _IO_ssize_t streamsize;
typedef unsigned long __fmtflags;