mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Adopt to a different prototype of the iconv() function under Windows.
This commit is contained in:
parent
8c71d4e4a1
commit
9f41c3304a
|
@ -37,7 +37,12 @@ Iconv::Result Iconv::convert( void const * & inBuf, size_t & inBytesLeft,
|
||||||
throw( exIncorrectSeq, exOther )
|
throw( exIncorrectSeq, exOther )
|
||||||
{
|
{
|
||||||
size_t result = iconv( state,
|
size_t result = iconv( state,
|
||||||
(char **)&inBuf, &inBytesLeft,
|
#ifdef __WIN32
|
||||||
|
(char const **)&inBuf,
|
||||||
|
#else
|
||||||
|
(char **)&inBuf,
|
||||||
|
#endif
|
||||||
|
&inBytesLeft,
|
||||||
(char **)&outBuf, &outBytesLeft );
|
(char **)&outBuf, &outBytesLeft );
|
||||||
|
|
||||||
if ( result == (size_t) -1 )
|
if ( result == (size_t) -1 )
|
||||||
|
|
Loading…
Reference in a new issue