- fixed problem with bdb-compatibility when compiling libstdc++ without inlining (compatibility functions were missing from libstdc++.r4.so in that case).
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9835 a95241bf-73f2-0310-859d-f6bbb57e9c96
Diff
gcc/libio/iostream.cc | 36 ++++++++++++++++++++++++++++++++++++
gcc/libio/iostream.h | 30 +++++++++++++++++-------------
2 files changed, 48 insertions(+), 18 deletions(-)
@@ -102,6 +102,24 @@
return ch;
}
istream& istream::read(char *ptr, int n)
{
return read((char*)ptr, (streamsize)n);
}
istream& istream::read(unsigned char *ptr, int n)
{
return read((char*)ptr, (streamsize)n);
}
istream& istream::read(signed char *ptr, int n)
{
return read((char*)ptr, (streamsize)n);
}
istream& istream::read(void *ptr, int n)
{
return read((char*)ptr, (streamsize)n);
}
istream& istream::ignore(int n , int delim )
{
_gcount = 0;
@@ -1020,6 +1038,24 @@
_IO_cleanup_region_end (0);
}
return *this;
}
ostream& ostream::write(const char *s, int n)
{
return write((const char*)s, (streamsize)n);
}
ostream& ostream::write(const unsigned char *s, int n)
{
return write((const char*)s, (streamsize)n);
}
ostream& ostream::write(const signed char *s, int n)
{
return write((const char*)s, (streamsize)n);
}
ostream& ostream::write(const void *s, int n)
{
return write((const char*)s, (streamsize)n);
}
void ostream::do_osfx()
@@ -69,15 +69,12 @@
ostream& write(const void *s, streamsize n)
{ return write((const char*)s, n);}
#ifdef _STREAM_COMPAT
ostream& write(const char *s, int n)
{ return write((const char*)s, (streamsize)n);}
ostream& write(const unsigned char *s, int n)
{ return write((const char*)s, (streamsize)n);}
ostream& write(const signed char *s, int n)
{ return write((const char*)s, (streamsize)n);}
ostream& write(const void *s, int n)
{ return write((const char*)s, (streamsize)n);}
ostream& write(const char *s, int n);
ostream& write(const unsigned char *s, int n);
ostream& write(const signed char *s, int n);
ostream& write(const void *s, int n);
#endif
ostream& seekp(streampos);
ostream& seekp(streamoff, _seek_dir);
@@ -153,15 +150,12 @@
istream& read(void *ptr, streamsize n)
{ return read((char*)ptr, n); }
#ifdef _STREAM_COMPAT
istream& read(char *ptr, int n)
{ return read((char*)ptr, (streamsize)n); }
istream& read(unsigned char *ptr, int n)
{ return read((char*)ptr, (streamsize)n); }
istream& read(signed char *ptr, int n)
{ return read((char*)ptr, (streamsize)n); }
istream& read(void *ptr, int n)
{ return read((char*)ptr, (streamsize)n); }
istream& read(char *ptr, int n);
istream& read(unsigned char *ptr, int n);
istream& read(signed char *ptr, int n);
istream& read(void *ptr, int n);
#endif
istream& get(streambuf& sb, char delim = '\n');
istream& gets(char **s, char delim = '\n');