From f03bedcae2bfbd4ccfccbb7e0106388bb2dbec4b Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Mon, 20 Feb 2006 13:18:26 +0000 Subject: Add HP48-xgcc 1.0.2, GNU C cross-compiler for HP48 calculators. Now one step closer porting BSD on my HP48GX. ;-) --- devel/hp48xgcc/files/patch-class+clld.cc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 devel/hp48xgcc/files/patch-class+clld.cc (limited to 'devel/hp48xgcc/files/patch-class+clld.cc') diff --git a/devel/hp48xgcc/files/patch-class+clld.cc b/devel/hp48xgcc/files/patch-class+clld.cc new file mode 100644 index 000000000000..fe400e0505b0 --- /dev/null +++ b/devel/hp48xgcc/files/patch-class+clld.cc @@ -0,0 +1,29 @@ +--- class/clld.cc 3 Nov 2004 06:57:51 -0000 1.1 ++++ class/clld.cc 4 Nov 2004 10:58:04 -0000 1.2 +@@ -130,7 +130,7 @@ + BIstream f; + f.open(name, ios::in | ios::binary); + #else +- ifstream f(name, ios::in | ios::bin); ++ ifstream f(name, ios::in | ios::binary); + #endif + if (f.fail()) { + if (!library) +@@ -332,7 +332,7 @@ + BOstream shl_stream; + shl_stream.open ( shl_name, ios::out | ios::bin | ios::trunc ); + #else +- ofstream shl_stream(shl_name, ios::out | ios::bin | ios::trunc ); ++ ofstream shl_stream(shl_name, ios::out | ios::binary | ios::trunc ); + #endif + if (shl_stream.fail()) { + cerr << "ERROR: unable to open file '"+shl_name+"' for writing\n"; +@@ -528,7 +528,7 @@ + BOstream dst_stream; + dst_stream.open (bin_name, ios::out | ios::bin | ios::trunc ); + #else +- ofstream dst_stream(bin_name, ios::out | ios::bin | ios::trunc ); ++ ofstream dst_stream(bin_name, ios::out | ios::binary | ios::trunc ); + #endif + if (dst_stream.fail()) { + cerr << "ERROR: unable to open file '"+bin_name+"' for writing\n"; -- cgit v1.2.3