Adopt to a different prototype of the iconv() function under Windows.

This commit is contained in:
Konstantin Isakov 2009-02-02 01:04:39 +00:00
parent 8c71d4e4a1
commit 9f41c3304a

View file

@ -37,7 +37,12 @@ Iconv::Result Iconv::convert( void const * & inBuf, size_t & inBytesLeft,
throw( exIncorrectSeq, exOther )
{
size_t result = iconv( state,
(char **)&inBuf, &inBytesLeft,
#ifdef __WIN32
(char const **)&inBuf,
#else
(char **)&inBuf,
#endif
&inBytesLeft,
(char **)&outBuf, &outBytesLeft );
if ( result == (size_t) -1 )