use EXV_ICONV_CONST
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
6f72bf7973
commit
2ddf00e7a2
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user