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
|
#ifdef WINICONV_CONST
|
||||||
auto inptr = (WINICONV_CONST char*)(str.c_str());
|
auto inptr = (WINICONV_CONST char*)(str.c_str());
|
||||||
#else
|
#else
|
||||||
auto inptr = const_cast<char*>(str.c_str());
|
auto inptr = (EXV_ICONV_CONST char*)(str.c_str());
|
||||||
#endif
|
#endif
|
||||||
size_t inbytesleft = str.length();
|
size_t inbytesleft = str.length();
|
||||||
while (inbytesleft) {
|
while (inbytesleft) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user