Lines 1-11
Link Here
|
1 |
--- ./lib/ofx_preproc.cpp.orig 2011-04-16 13:10:20.000000000 -0400 |
1 |
--- ./lib/ofx_preproc.cpp.orig 2011-06-08 08:07:52.000000000 -0400 |
2 |
+++ ./lib/ofx_preproc.cpp 2011-04-21 11:03:43.000000000 -0400 |
2 |
+++ ./lib/ofx_preproc.cpp 2012-02-22 08:46:57.000000000 -0500 |
3 |
@@ -228,7 +228,7 @@ |
3 |
@@ -231,7 +231,7 @@ |
4 |
memset(iconv_buffer, 0, READ_BUFFER_SIZE * 2); |
4 |
memset(iconv_buffer, 0, READ_BUFFER_SIZE * 2); |
5 |
size_t inbytesleft = strlen(s_buffer.c_str()); |
5 |
size_t inbytesleft = strlen(s_buffer.c_str()); |
6 |
size_t outbytesleft = READ_BUFFER_SIZE * 2 - 1; |
6 |
size_t outbytesleft = READ_BUFFER_SIZE * 2 - 1; |
7 |
-#ifdef OS_WIN32 |
7 |
-#ifdef OS_WIN32 |
8 |
+#if defined(OS_WIN32) || defined(OS_FREEBSD) |
8 |
+#if defined(OS_WIN32) || defined(__FreeBSD__) |
9 |
const char * inchar = (const char *)s_buffer.c_str(); |
9 |
const char * inchar = (const char *)s_buffer.c_str(); |
10 |
#else |
10 |
#else |
11 |
char * inchar = (char *)s_buffer.c_str(); |
11 |
char * inchar = (char *)s_buffer.c_str(); |