diff options
| author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-10-09 20:53:22 +0000 |
|---|---|---|
| committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-10-09 20:53:22 +0000 |
| commit | e9caa18e52f4d8e3536513aea370ecff4b97b4c5 (patch) | |
| tree | 888b094a78ea6233f4d365ecf3451ba6b3165761 /devel/hp48xgcc/files/patch-class+LKV+Bstream.cc | |
| parent | - Respect CC (diff) | |
Unbreak the build on recent -CURRENT (yet again).
Reported by: pkg-fallout
Notes
Notes:
svn path=/head/; revision=329929
Diffstat (limited to 'devel/hp48xgcc/files/patch-class+LKV+Bstream.cc')
| -rw-r--r-- | devel/hp48xgcc/files/patch-class+LKV+Bstream.cc | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/devel/hp48xgcc/files/patch-class+LKV+Bstream.cc b/devel/hp48xgcc/files/patch-class+LKV+Bstream.cc index 37e111361141..4759c0b7e843 100644 --- a/devel/hp48xgcc/files/patch-class+LKV+Bstream.cc +++ b/devel/hp48xgcc/files/patch-class+LKV+Bstream.cc @@ -1,20 +1,41 @@ --- class/LKV/Bstream.cc 3 Nov 2004 06:57:51 -0000 1.1 +++ class/LKV/Bstream.cc 3 Nov 2004 11:24:06 -0000 1.2 -@@ -17,7 +17,7 @@ +@@ -10,15 +10,15 @@ extern "C" { + #include "Bstream.h" + + #ifndef OBSOLETE_LIBGXX +-BOstream::BOstream ( ostream & orig ) : ostream(orig.rdbuf()) { +- ostream::setf(ios::scientific); +- ostream::precision(190); ++BOstream::BOstream ( std::ostream & orig ) : std::ostream(orig.rdbuf()) { ++ std::ostream::setf(std::ios::scientific); ++ std::ostream::precision(190); + } #endif void BOstream::ewrite(const void * p, int size) { - write ((const unsigned char *)p, size); +- if (ostream::fail()) { + write ((const char *)p, size); - if (ostream::fail()) { ++ if (std::ostream::fail()) { set_error("BOstream::operator<< ","write-error"); } -@@ -34,7 +34,7 @@ + } +@@ -28,14 +28,14 @@ void BOstream::ewrite(const void * p, in + // ============================================================== + + #ifndef OBSOLETE_LIBGXX +-BIstream::BIstream( istream & orig ) : istream(orig.rdbuf()) { ++BIstream::BIstream( std::istream & orig ) : std::istream(orig.rdbuf()) { + + } #endif void BIstream::eread(void * p, int size) { - read ((unsigned char *)p, size); +- if (istream::fail()) { + read ((char *)p, size); - if (istream::fail()) { ++ if (std::istream::fail()) { set_error("BIstream::operator>> ","read-error"); } + } |
