From 1c2edb9a01817fbac169e12f14944e8676c013dc Mon Sep 17 00:00:00 2001 From: akir Date: Wed, 1 Sep 2004 00:09:03 +0000 Subject: final fix for iconv-issues on sun/sparcs --- src/FbTk/Font.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc index 3d4608d..5665993 100644 --- a/src/FbTk/Font.cc +++ b/src/FbTk/Font.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // 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" @@ -122,7 +122,7 @@ char* recode(iconv_t cd, size_t result = (size_t)(-1); #ifdef HAVE_CONST_ICONV - result = iconv(cd, const_cast(&msg_ptr), &inbytesleft, &new_msg, &outbytesleft); + result = iconv(cd, (const char**)(&msg_ptr), &inbytesleft, &new_msg, &outbytesleft); #else result = iconv(cd, &msg_ptr, &inbytesleft, &new_msg, &outbytesleft); #endif // HAVE_CONST_ICONV -- cgit v0.11.2