r20443 - gnucash/trunk/packaging/win32 - Windows build: patch libofx to build with mingw gcc 4.5.2

Geert Janssens gjanssens at code.gnucash.org
Mon Mar 21 11:10:58 EDT 2011


Author: gjanssens
Date: 2011-03-21 11:10:58 -0400 (Mon, 21 Mar 2011)
New Revision: 20443
Trac: http://svn.gnucash.org/trac/changeset/20443

Modified:
   gnucash/trunk/packaging/win32/libofx-0.8.3-patch.diff
Log:
Windows build: patch libofx to build with mingw gcc 4.5.2

Note: the complete gnucash build is still broken and will be fixed
with following patches.

Modified: gnucash/trunk/packaging/win32/libofx-0.8.3-patch.diff
===================================================================
--- gnucash/trunk/packaging/win32/libofx-0.8.3-patch.diff	2011-03-21 15:10:48 UTC (rev 20442)
+++ gnucash/trunk/packaging/win32/libofx-0.8.3-patch.diff	2011-03-21 15:10:58 UTC (rev 20443)
@@ -137,3 +137,89 @@
      dtd_path_filename.append(dtd_filename);
      dtd_file.clear();
      dtd_file.open(dtd_path_filename.c_str());
+--- libofx-0.8.3/lib/ofx_utilities.cpp-org	2010-05-22 12:57:31 +0000
++++ libofx-0.8.3/lib/ofx_utilities.cpp	2010-05-22 13:31:13 +0000
+@@ -19,7 +19,8 @@
+ #include <iostream>
+ #include "ParserEventGeneratorKit.h"
+ #include "SGMLApplication.h"
+-#include <time.h>
++#include <ctime>
++#include <cstdlib>
+ #include <string>
+ #include <locale.h>
+ #include "messages.hh"
+--- libofx-0.8.3/lib/ofx_container_transaction.cpp-org	2010-05-22 14:08:02 +0000
++++ libofx-0.8.3/lib/ofx_container_transaction.cpp	2010-05-22 14:07:09 +0000
+@@ -21,6 +21,7 @@
+ #include <config.h>
+ #endif
+ 
++#include <cstdlib>
+ #include <string>
+ #include "messages.hh"
+ #include "libofx.h"
+--- libofx-0.8.3/lib/ofx_request_accountinfo.cpp-org	2010-05-22 14:17:26 +0000
++++ libofx-0.8.3/lib/ofx_request_accountinfo.cpp	2010-05-22 14:17:55 +0000
+@@ -21,6 +21,7 @@
+ #include <config.h>
+ #endif
+ 
++#include <cstdlib>
+ #include <string>
+ #include "libofx.h"
+ #include "ofx_request_accountinfo.hh"
+--- libofx-0.8.3/lib/ofx_request.cpp-org	2010-05-22 14:19:52 +0000
++++ libofx-0.8.3/lib/ofx_request.cpp	2010-05-22 14:20:12 +0000
+@@ -21,6 +21,7 @@
+ #include <config.h>
+ #endif
+ 
++#include <cstring>
+ #include <string>
+ #include "messages.hh"
+ #include "libofx.h"
+--- libofx-0.8.3/lib/ofx_request_statement.cpp-org	2010-05-22 14:21:19 +0000
++++ libofx-0.8.3/lib/ofx_request_statement.cpp	2010-05-22 14:21:34 +0000
+@@ -21,6 +21,7 @@
+ #include <config.h>
+ #endif
+ 
++#include <cstdlib>
+ #include <string>
+ #include "libofx.h"
+ #include "ofx_utilities.hh"
+--- libofx-0.8.3/ofxdump/ofxdump.cpp-org	2010-05-22 14:54:40 +0000
++++ libofx-0.8.3/ofxdump/ofxdump.cpp	2010-05-22 14:55:20 +0000
+@@ -29,6 +29,8 @@
+  ***************************************************************************/
+ #include <iostream>
+ #include <iomanip>
++#include <cstdlib>
++#include <cstring>
+ #include <string>
+ #include "libofx.h"
+ #include <stdio.h>		/* for printf() */
+--- libofx-0.8.3/ofxconnect/ofxconnect.cpp-org	2010-05-22 14:57:35 +0000
++++ libofx-0.8.3/ofxconnect/ofxconnect.cpp	2010-05-22 14:58:24 +0000
+@@ -30,6 +30,7 @@
+  ***************************************************************************/
+ #include <iostream>
+ #include <fstream>
++#include <cstring>
+ #include <string>
+ #include "libofx.h"
+ #include <config.h>		/* Include config constants, e.g., VERSION TF */
+--- libofx-0.8.3/ofxconnect/ofxpartner.cpp-org	2010-05-22 14:59:39 +0000
++++ libofx-0.8.3/ofxconnect/ofxpartner.cpp	2010-05-22 15:00:46 +0000
+@@ -33,8 +33,10 @@
+ #include <sys/stat.h>
+ 
+ #include <iostream>
++#include <cstring>
+ #include <string>
+ #include <vector>
++#include <algorithm>
+ 
+ using std::string;
+ using std::vector;



More information about the gnucash-changes mailing list