final fix for iconv-issues on sun/sparcs
This commit is contained in:
parent
0c5dae0b45
commit
1c2edb9a01
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
//$Id: Font.cc,v 1.18 2004/08/31 23:07:58 akir Exp $
|
//$Id: Font.cc,v 1.19 2004/09/01 00:09:03 akir Exp $
|
||||||
|
|
||||||
|
|
||||||
#include "StringUtil.hh"
|
#include "StringUtil.hh"
|
||||||
|
@ -122,7 +122,7 @@ char* recode(iconv_t cd,
|
||||||
size_t result = (size_t)(-1);
|
size_t result = (size_t)(-1);
|
||||||
|
|
||||||
#ifdef HAVE_CONST_ICONV
|
#ifdef HAVE_CONST_ICONV
|
||||||
result = iconv(cd, const_cast<char **>(&msg_ptr), &inbytesleft, &new_msg, &outbytesleft);
|
result = iconv(cd, (const char**)(&msg_ptr), &inbytesleft, &new_msg, &outbytesleft);
|
||||||
#else
|
#else
|
||||||
result = iconv(cd, &msg_ptr, &inbytesleft, &new_msg, &outbytesleft);
|
result = iconv(cd, &msg_ptr, &inbytesleft, &new_msg, &outbytesleft);
|
||||||
#endif // HAVE_CONST_ICONV
|
#endif // HAVE_CONST_ICONV
|
||||||
|
|
Loading…
Reference in a new issue