Explicitly cast away constness in the script gettext functions

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5706 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-07-29 11:26:13 +00:00
parent b5bfd1d8eb
commit 4ddff7023c
1 changed files with 3 additions and 3 deletions

View File

@ -11743,7 +11743,7 @@ BOOL scrGettext()
return false;
}
scrFunctionResult.v.sval = gettext(strParam1);
scrFunctionResult.v.sval = (char*)gettext(strParam1);
return stackPushResult(ST_TEXTSTRING, &scrFunctionResult);
}
@ -11779,9 +11779,9 @@ BOOL scrPgettext()
}
#ifdef DEFAULT_TEXT_DOMAIN
translation = dcgettext(DEFAULT_TEXT_DOMAIN, msg_ctxt_id, LC_MESSAGES);
translation = (char*)dcgettext(DEFAULT_TEXT_DOMAIN, msg_ctxt_id, LC_MESSAGES);
#else
translation = dcgettext(NULL, msg_ctxt_id, LC_MESSAGES);
translation = (char*)dcgettext(NULL, msg_ctxt_id, LC_MESSAGES);
#endif
/* Due to the way dcgettext works a pointer comparison is enough, hence