Browse Source

Rene Rebe:

* fixed motor and nullmailer for gcc-3.4


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3515 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 20 years ago
parent
commit
2d2fd52e2e
2 changed files with 50 additions and 0 deletions
  1. +17
    -0
      package/jimmy/motor/gcc34.patch
  2. +33
    -0
      package/jimmy/nullmailer/gcc34.patch

+ 17
- 0
package/jimmy/motor/gcc34.patch

@ -0,0 +1,17 @@
An ugly patch for an ugly lvalue cast - for gcc-3.4.
- Rene Rebe <rene@rocklinux.org>
--- ./src/ui/ncurses/uitagbrowser.cc.vanilla 2004-07-05 14:13:59.000000000 +0200
+++ ./src/ui/ncurses/uitagbrowser.cc 2004-07-05 14:08:51.000000000 +0200
@@ -78,7 +78,8 @@
cm.setwindow(textwindow(w.x1, w.y1, w.x1+20, 0, uiconf.getcolor(cp_menufr)));
for(motortagbrowser::viewscope scope = motortagbrowser::File;
- scope != motortagbrowser::viewscope_size; (int) scope += 1) {
+ scope != motortagbrowser::viewscope_size;
+ scope = (motortagbrowser::viewscope) ((int)scope + 1) ) {
cm.additem(0, scope, (string) " " + getscopename(scope));
if(scope == tagbrowser.getscope())
cm.setpos(cm.getcount()-1);

+ 33
- 0
package/jimmy/nullmailer/gcc34.patch

@ -0,0 +1,33 @@
Get the tempalte friends to compile with gcc-3.4.
- Rene Rebe <rene@rocklinux.org
--- ./lib/list.h.vanilla 2004-07-05 13:54:18.000000000 +0200
+++ ./lib/list.h 2004-07-05 14:01:49.000000000 +0200
@@ -9,18 +9,19 @@
~list_node() { }
};
-template<class T> class list_iterator;
-template<class T> class const_list_iterator;
+template<typename T> class list_iterator;
+template<typename T> class const_list_iterator;
-template<class T> class list
+template<typename T> class list
{
public:
typedef list_node<T> node;
typedef list_iterator<T> iter;
typedef const_list_iterator<T> const_iter;
- friend class iter;
- friend class const_iter;
-
+
+ friend class list_iterator<T>;
+ friend class const_list_iterator<T>;
+
list()
: head(0), tail(0), cnt(0)
{

Loading…
Cancel
Save