File libofx-0.10.5-mingw.patch of Package mingw64-libofx
--- libofx-0.10.5/lib/ofx_preproc.cpp.orig 2022-07-03 12:52:46.575846432 +0200
+++ libofx-0.10.5/lib/ofx_preproc.cpp 2022-07-03 12:55:42.453533006 +0200
@@ -309,7 +309,11 @@
const char* inchar = s_buffer.c_str();
char * outchar = iconv_buffer;
int iconv_retval = iconv (conversion_descriptor,
+#ifdef WINICONV_CONST
+ const_cast<const char**>(&inchar), &inbytesleft,
+#else
const_cast<char**>(&inchar), &inbytesleft,
+#endif
&outchar, &outbytesleft);
if (iconv_retval == -1)
{