diff --git a/src/convert.cpp b/src/convert.cpp index cd822a89..e92d652c 100644 --- a/src/convert.cpp +++ b/src/convert.cpp @@ -1586,7 +1586,7 @@ bool convertStringCharsetIconv(std::string& str, const char* from, const char* t #ifdef WINICONV_CONST auto inptr = (WINICONV_CONST char*)(str.c_str()); #else - auto inptr = const_cast(str.c_str()); + auto inptr = (EXV_ICONV_CONST char*)(str.c_str()); #endif size_t inbytesleft = str.length(); while (inbytesleft) {