--- lib/ofx_preproc.cpp	2013-10-16 22:45:09.000000000 +0200
+++ lib/ofx_preproc.cpp	2013-10-16 22:49:05.000000000 +0200
@@ -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(OS_WIN32) || defined(__sun) || defined(__APPLE__)
             const char * inchar = (const char *)s_buffer.c_str();
 #else
             char * inchar = (char *)s_buffer.c_str();
