Handle broken iconv headers (BSD and derivatives). ICONV_CONST is defined in config.h by the autotools, if HAVE_ICONV is defined, define ICONV_CONST to either const or leave it empty for other OSes.
This commit is contained in:
@@ -52,7 +52,7 @@ static bool ConvertFromCharset( RString &txt, const char *charset )
|
||||
}
|
||||
|
||||
/* Copy the string into a char* for iconv */
|
||||
char *txtin = const_cast<char*>( txt.data() );
|
||||
ICONV_CONST char *txtin = const_cast<ICONV_CONST char*>( txt.data() );
|
||||
size_t inleft = txt.size();
|
||||
|
||||
/* Create a new string with enough room for the new conversion */
|
||||
|
||||
Reference in New Issue
Block a user