forked from Gnucash/gnucash-on-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibofx-0.9.8.patch
34 lines (25 loc) · 910 Bytes
/
libofx-0.9.8.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- a/lib/ofx_preproc.cpp 2013-04-17 20:09:11 +0000
+++ b/lib/ofx_preproc.cpp 2013-10-14 09:00:31 +0000
@@ -310,7 +310,7 @@
size_t outbytesleft = inbytesleft * 2 - 1;
iconv_buffer = (char*) malloc (inbytesleft * 2);
memset(iconv_buffer, 0, inbytesleft * 2);
-#if defined(OS_WIN32) || defined(__sun)
+#if defined(__sun)
const char * inchar = (const char *)s_buffer.c_str();
#else
char * inchar = (char *)s_buffer.c_str();
--- a/lib/win32.cpp Wed Mar 30 15:30:50 2011
+++ b/lib/win32.cpp Sun Mar 29 15:07:27 2015
@@ -25,7 +25,7 @@
-#ifdef OS_WIN32
+#if defined(OS_WIN32) && !defined(__MINGW32__)
int mkstemp(char *tmpl)
{
--- a/lib/win32.hh Wed Mar 30 15:30:50 2011
+++ b/lib/win32.hh Sun Mar 29 16:26:58 2015
@@ -21,7 +21,7 @@
#endif
-#ifdef OS_WIN32
+#if defined(OS_WIN32) && !defined(__MINGW32__)
int mkstemp(char *tmpl);