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:
Steve Checkoway
2006-03-20 06:11:47 +00:00
parent 5d9ab0982b
commit 4861bc0949
+1 -1
View File
@@ -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 */