Fix iconv signature on BSD systems. (Based on what we do in tools/)

svn-id: r49868
This commit is contained in:
Johannes Schickel 2010-06-15 17:13:42 +00:00
parent cf6a29e862
commit 0d7c8071cc
2 changed files with 16 additions and 0 deletions

View file

@ -119,7 +119,11 @@ bool TranslationManager::convert(const char *message) {
char *msgcpy = new char[len + 1];
strcpy(msgcpy, message);
char *msg = msgcpy;
#ifdef ICONV_USES_CONST
const char **pmsg = &msg;
#else
char **pmsg = &msg;
#endif
// Preparing conversion destination
size_t len2 = _sizeconv;