Re: porting problem


Subject: Re: porting problem
From: Sam TH (sam@uchicago.edu)
Date: Thu Jan 18 2001 - 16:15:14 CST


On Thu, Jan 18, 2001 at 11:06:02PM +0100, Hubert Figui?re wrote:
> Hello,
>
> I'm trying to resynchronise the Mac port to the current CVS.
> I'm having a problem:
>
[sinp]
> (ICONV_CAST is #defined as nothing)
>
> Whatever I use libiconv-1.3 or the iconv.h that I found in wv.
>
> Removing the const_cast<ICONV_CONST char **> solves the problem. But
> what would be the side effect ?

ICONV_CONST is a horrible hack that I created to fix this problem of
incompatible iconv() prototypes. What you need to do is find where
ICONV_CONST is defined, and add something like this:

#ifdef __MAC_OS__ // or whatever your platform defines
#define ICONV_CONST const
#endif

That should fix the problem.

This is a hacked-up way to get around our lack of configure, which
shold evetually be remedied (once my computer works again).

                                sam th
                                sam@uchicago.edu
                                http://www.abisource.com/~sam
                                GnuPG Key:
                                http://www.abisource.com/~sam/key




This archive was generated by hypermail 2b25 : Thu Jan 18 2001 - 16:15:15 CST