summaryrefslogtreecommitdiff
path: root/gnu/egcs
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-09-02 08:57:19 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-09-02 08:57:19 +0000
commita26541b4b74a6e953e54b4527e720e1db24d193f (patch)
treec3006f2982877a6e80243dce0723838c8162064f /gnu/egcs
parent2cd359b3eb6d97b5e6448c8357ea36bc5a42cb17 (diff)
Provide ios::pos_type and ios::off_type on gcc 2.95 platforms, as some ports
want to use them. ok espie@ jsg@
Diffstat (limited to 'gnu/egcs')
-rw-r--r--gnu/egcs/libio/streambuf.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/egcs/libio/streambuf.h b/gnu/egcs/libio/streambuf.h
index d472cbece2c..7c7e31844b5 100644
--- a/gnu/egcs/libio/streambuf.h
+++ b/gnu/egcs/libio/streambuf.h
@@ -72,10 +72,10 @@ class ostream; class streambuf;
#if defined(_G_IO_IO_FILE_VERSION) && _G_IO_IO_FILE_VERSION == 0x20001
typedef _IO_off64_t streamoff;
-typedef _IO_fpos64_t streampos;
+typedef _IO_off64_t streampos;
#else
typedef _IO_off_t streamoff;
-typedef _IO_fpos_t streampos;
+typedef _IO_off_t streampos;
#endif
typedef _IO_ssize_t streamsize;
@@ -130,7 +130,7 @@ class ios : public _ios_fields {
typedef __fmtflags fmtflags;
typedef int iostate;
typedef int openmode;
- typedef int streamsize;
+ typedef _IO_ssize_t streamsize;
enum io_state {
goodbit = _IOS_GOOD,
eofbit = _IOS_EOF,
@@ -148,6 +148,8 @@ class ios : public _ios_fields {
binary = _IOS_BIN };
enum seek_dir { beg, cur, end};
typedef enum seek_dir seekdir;
+ typedef streampos pos_type;
+ typedef streamoff off_type;
// NOTE: If adding flags here, before to update ios::bitalloc().
enum { skipws=_IO_SKIPWS,
left=_IO_LEFT, right=_IO_RIGHT, internal=_IO_INTERNAL,