gnucash-on-windows master: Adjust ofx patch to make it apply properly

Geert Janssens gjanssens at code.gnucash.org
Sat Apr 28 07:51:07 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash-on-windows/commit/b606f4f6 (commit)
	from  https://github.com/Gnucash/gnucash-on-windows/commit/6e36fbf4 (commit)



commit b606f4f6c74f5dc8528cc025f3e29d633cbd2e64
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Sat Apr 28 13:50:59 2018 +0200

    Adjust ofx patch to make it apply properly

diff --git a/patches/libofx-tempfile.patch b/patches/libofx-tempfile.patch
index 624c92d..e037fe6 100644
--- a/patches/libofx-tempfile.patch
+++ b/patches/libofx-tempfile.patch
@@ -22,7 +22,7 @@
              size_t outbytesleft = inbytesleft * 2 - 1;
              iconv_buffer = (char*) malloc (inbytesleft * 2);
              memset(iconv_buffer, 0, inbytesleft * 2);
--#if defined(__WIN32__) || defined(__sun)
+-#if defined(OS_WIN32) || defined(__sun)
 +#if defined(__sun)
              const char * inchar = (const char *)s_buffer.c_str();
  #else
@@ -35,7 +35,8 @@
  
  
  
- #ifdef __WIN32__
+-#ifdef OS_WIN32
++#ifdef __WIN32__
  
 -int mkstemp(char *tmpl)
 +int mkstemp_win32(char *tmpl)
@@ -50,7 +51,8 @@
  #endif
  
  
- #ifdef __WIN32__
+-#ifdef OS_WIN32
++#ifdef __WIN32__
  
 -int mkstemp(char *tmpl);
 +int mkstemp_win32(char *tmpl);



Summary of changes:
 patches/libofx-tempfile.patch | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)



More information about the gnucash-changes mailing list