diff options
author | Johannes Schickel | 2010-06-15 17:13:42 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-06-15 17:13:42 +0000 |
commit | 0d7c8071cc8baed030d5f25203982e0613440412 (patch) | |
tree | 0757902177e6c308d0cb8f506df76268c140976e /common | |
parent | cf6a29e8623be7ae9575ee34fa42e1c2c2d29a3b (diff) | |
download | scummvm-rg350-0d7c8071cc8baed030d5f25203982e0613440412.tar.gz scummvm-rg350-0d7c8071cc8baed030d5f25203982e0613440412.tar.bz2 scummvm-rg350-0d7c8071cc8baed030d5f25203982e0613440412.zip |
Fix iconv signature on BSD systems. (Based on what we do in tools/)
svn-id: r49868
Diffstat (limited to 'common')
-rwxr-xr-x | common/translation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/translation.cpp b/common/translation.cpp index 7346441d27..7dfb3fcc8e 100755 --- a/common/translation.cpp +++ b/common/translation.cpp @@ -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; |