diff options
author | danfe <danfe@FreeBSD.org> | 2006-10-04 05:46:25 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2006-10-04 05:46:25 +0800 |
commit | 966e30f44b5f225cdfa3ec643dd6dd59928f1c70 (patch) | |
tree | 3ecba85427ca858c4d160660f2feae3e7a855ff4 | |
parent | 8a35b2e543fc1bf7d25f7a649cbf778b588f17c2 (diff) | |
download | freebsd-ports-gnome-966e30f44b5f225cdfa3ec643dd6dd59928f1c70.tar.gz freebsd-ports-gnome-966e30f44b5f225cdfa3ec643dd6dd59928f1c70.tar.zst freebsd-ports-gnome-966e30f44b5f225cdfa3ec643dd6dd59928f1c70.zip |
Fix the build with GCC 4.1.
-rw-r--r-- | devel/hp48xgcc/files/patch-class+LKV+AVLTree.h | 9 | ||||
-rw-r--r-- | devel/hp48xgcc/files/patch-class+LKV+List.h | 14 | ||||
-rw-r--r-- | devel/hp48xgcc/files/patch-class+LKV+Str.h | 10 |
3 files changed, 23 insertions, 10 deletions
diff --git a/devel/hp48xgcc/files/patch-class+LKV+AVLTree.h b/devel/hp48xgcc/files/patch-class+LKV+AVLTree.h index a7b51d4799a7..e52d96dee0f2 100644 --- a/devel/hp48xgcc/files/patch-class+LKV+AVLTree.h +++ b/devel/hp48xgcc/files/patch-class+LKV+AVLTree.h @@ -79,6 +79,15 @@ return 0; } else { // right->left will become aktnode +@@ -843,7 +843,7 @@ + + #ifdef DEBUG + +-class ostream; ++#include "Str.h" + + template <class T> + void recurse_AVLTout ( ostream & out, AVLItem<T> * item, @@ -893,9 +893,9 @@ return out; } diff --git a/devel/hp48xgcc/files/patch-class+LKV+List.h b/devel/hp48xgcc/files/patch-class+LKV+List.h index 5ee26600467d..57d6f69d7a76 100644 --- a/devel/hp48xgcc/files/patch-class+LKV+List.h +++ b/devel/hp48xgcc/files/patch-class+LKV+List.h @@ -1,15 +1,15 @@ --- class/LKV/List.h 3 Nov 2004 06:57:51 -0000 1.1 +++ class/LKV/List.h 20 Feb 2006 11:08:10 -0000 -@@ -12,6 +12,8 @@ +@@ -12,7 +12,7 @@ #include "AllocBuf.h" +-class ostream; +#include "Bstream.h" -+ - class ostream; template <class T> -@@ -35,13 +37,13 @@ + class List; +@@ -35,13 +35,13 @@ ListItem( void ) : T() #ifdef DEBUG , next((ListItem *)0), prev((ListItem *)0) @@ -25,7 +25,7 @@ { }; ListItem * get_next(void) const { -@@ -59,6 +61,9 @@ +@@ -59,6 +59,9 @@ template <class T> @@ -35,7 +35,7 @@ class List { protected: -@@ -239,7 +244,7 @@ +@@ -239,7 +242,7 @@ return last; }; @@ -44,7 +44,7 @@ }; template <class T> -@@ -306,4 +311,4 @@ +@@ -306,4 +309,4 @@ } diff --git a/devel/hp48xgcc/files/patch-class+LKV+Str.h b/devel/hp48xgcc/files/patch-class+LKV+Str.h index 4f7c63c6f4c1..7c69813055ae 100644 --- a/devel/hp48xgcc/files/patch-class+LKV+Str.h +++ b/devel/hp48xgcc/files/patch-class+LKV+Str.h @@ -30,16 +30,20 @@ return (unsigned char *) adr; } -@@ -168,6 +177,8 @@ +@@ -168,10 +177,10 @@ Str FtoStr(double val); Str LtoStr(long); +-class ostream; +#include <iostream.h> + - class ostream; ostream & operator<< (ostream & o, const Str & s); -@@ -180,4 +191,4 @@ +-class istream; + istream & operator>> (istream & i, Str & s); + + class BOstream; +@@ -180,4 +189,4 @@ class BIstream; BIstream & operator>> (BIstream & i, Str & s); |