Hello,

Here come two very simple patches to get 2.2.4 and master to build
with gcc 4.4. The problem was sprintf is defined in stdio.h

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
diff -rupd witty-2.2.4.orig/src/Wt/Ext/Widget.C witty-2.2.4/src/Wt/Ext/Widget.C
--- witty-2.2.4.orig/src/Wt/Ext/Widget.C	2009-05-10 22:37:40.000000000 +0200
+++ witty-2.2.4/src/Wt/Ext/Widget.C	2009-05-10 22:33:35.000000000 +0200
@@ -15,6 +15,7 @@
 #include <iostream>
 #include <sstream>
 #include <cstring>
+#include <cstdio>
 
 namespace Wt {
 
Only in witty-2.2.4/src/Wt/Ext: Widget.C~
diff -rupd witty-2.2.4.orig/src/Wt/WAbstractItemModel.C witty-2.2.4/src/Wt/WAbstractItemModel.C
--- witty-2.2.4.orig/src/Wt/WAbstractItemModel.C	2009-05-10 22:37:40.000000000 +0200
+++ witty-2.2.4/src/Wt/WAbstractItemModel.C	2009-05-10 22:21:50.000000000 +0200
@@ -19,6 +19,8 @@
 #define snprintf _snprintf
 #endif
 
+#include <cstdio>
+
 namespace {
   const char *DRAG_DROP_MIME_TYPE = "application/x-wabstractitemmodelselection";
 }
Only in witty-2.2.4/src/Wt: WAbstractItemModel.C~
--- src/Wt/Ext/Widget.C~	2009-05-10 22:10:04.000000000 +0200
+++ src/Wt/Ext/Widget.C	2009-05-10 22:10:19.000000000 +0200
@@ -16,6 +16,7 @@
 #include <iostream>
 #include <sstream>
 #include <cstring>
+#include <cstdio>
 
 namespace Wt {
 
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to