On Sun, Feb 04, 2001 at 09:26:39PM -0800, Greg Stein wrote:
> There was some discussion about iconv prototyes here recently, but I kind of
> missed it.
> 
> Do we always need to live with a warning about a type mismatch, or is the
> cast below appropriate?
> 
> IOW, do some headers have "const" on them, and others not?

Yes, sadly, iconv() prototypes differ on this issue.  It isn't any fun
at all.  And if that wasn't enough, sometimes there is no one way to
get it to work on all compilers, with all prototypes.  This
neccessitates some ugly hacks in the AbiWord code, for example.
(another reason to use APR).  

Everybody thank the POSIX folks for changing this midstream.  
           
        sam th               
        [EMAIL PROTECTED]
        http://www.abisource.com/~sam/
        GnuPG Key:  
        http://www.abisource.com/~sam/key

Attachment: pgpHI4pvBmdWo.pgp
Description: PGP signature

Reply via email to