diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2006-02-20 13:18:26 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2006-02-20 13:18:26 +0000 |
commit | f03bedcae2bfbd4ccfccbb7e0106388bb2dbec4b (patch) | |
tree | c5712fcaf302723f2019d0d5df7e9ff55f1b7520 /devel/hp48xgcc/files/patch-class+LKV+Bstream.h | |
parent | - Fix problem with ancient make. (diff) |
Add HP48-xgcc 1.0.2, GNU C cross-compiler for HP48 calculators.
Now one step closer porting BSD on my HP48GX. ;-)
Notes
Notes:
svn path=/head/; revision=156493
Diffstat (limited to 'devel/hp48xgcc/files/patch-class+LKV+Bstream.h')
-rw-r--r-- | devel/hp48xgcc/files/patch-class+LKV+Bstream.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/devel/hp48xgcc/files/patch-class+LKV+Bstream.h b/devel/hp48xgcc/files/patch-class+LKV+Bstream.h new file mode 100644 index 000000000000..793147bde69b --- /dev/null +++ b/devel/hp48xgcc/files/patch-class+LKV+Bstream.h @@ -0,0 +1,42 @@ +--- class/LKV/Bstream.h 3 Nov 2004 06:57:51 -0000 1.1 ++++ class/LKV/Bstream.h 20 Feb 2006 10:55:38 -0000 +@@ -10,7 +10,7 @@ + + + #ifndef OBSOLETE_LIBGXX +-class BOstream : public ostream { ++class BOstream : public std::ostream { + #else + class BOstream : public ofstream { + #endif +@@ -34,13 +34,13 @@ + BOstream & operator<< (const void * n) { ewrite(&n, sizeof(n)); return *this; } + + int mem_dump(const void * p, int size) { +- write ((const unsigned char *)p, size); ++ write ((const char *)p, size); + return fail(); + } + }; + + #ifndef OBSOLETE_LIBGXX +-class BIstream : public istream { ++class BIstream : public std::istream { + #else + class BIstream : public ifstream { + #endif +@@ -64,12 +64,12 @@ + BIstream & operator>> (void * & n) { eread(&n, sizeof(n)); return *this; } + + int mem_undump(void * p, int size) { +- read ((unsigned char *)p, size); ++ read ((char *)p, size); + return fail(); + } + }; + + + +-#endif Bstream_h ++#endif /* Bstream_h */ + |