The following patch allows openmash to compile under gcc-3.4.
--- tclcl/tclcl.h.orig 2006-04-04 22:59:05.000000000 -0700
+++ tclcl/tclcl.h 2006-04-04 22:59:18.000000000 -0700
@@ -45,7 +45,6 @@
}
#include "tclcl-config.h"
-#include "tclcl-mappings.h"
#include "tracedvar.h"
struct Tk_Window_;
@@ -320,4 +319,6 @@
int argc, char *argv[]);
};
+#include "tclcl-mappings.h"
+
#endif
--- srm/srmv2/ns-srmv2.cc.orig 2006-04-05 00:00:39.000000000 -0700
+++ srm/srmv2/ns-srmv2.cc 2006-04-05 00:01:06.000000000 -0700
@@ -362,7 +362,7 @@
name_(NULL), name_len_(0)
{
if (max_degree > 0)
- child_ = new (NS_Node *)[max_degree];
+ child_ = new NS_Node *[max_degree];
for (int i=0; i<max_degree_; i++) {
child_[i] = 0;
}
--- mash/render/renderer-window.h.orig 2006-04-05 00:41:02.000000000 -0700
+++ mash/render/renderer-window.h 2006-04-05 00:41:21.000000000 -0700
@@ -53,10 +53,12 @@
int minx, int maxx) const;
void sync() const;
void resize(int w, int h);
- protected:
+public:
/*FIXME*/
void dither_null(const u_char* frm, u_int off, u_int x,
u_int width, u_int height) const;
+protected:
+
virtual void setcolor(int c);
void compute_scale(int w, int h);
virtual void alloc_image() = 0;
--
Karl 2006-04-20 16:59
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]