use EXV_ICONV_CONST

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2023-02-06 21:12:55 -08:00
parent 6f72bf7973
commit 2ddf00e7a2

View File

@ -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<char*>(str.c_str());
auto inptr = (EXV_ICONV_CONST char*)(str.c_str());
#endif
size_t inbytesleft = str.length();
while (inbytesleft) {