Re: darwin and expat

Karl Waclawek <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
Joe Stacy wrote:
> I do want the rest of my app to be Unicode - apologies if I implied
> otherwise.
>
> Specifically, building in Darwin with these macros defined, I get an
> error with xmlwf/unixfilemap.c due to conflicting definitions of
> filemap(). Filemap.h selects the wchar_t signature while unixfilemap.c
> uses char.
>   

You are right, there is a bug. Clearly, no one has ever built Expat for 
a UTF-16 based
application on a Unix system. Filemap.h is incomplete, as it does not 
differentiate
between wchar_t and ushort, as the rest of Expat does. unixfilemap.c 
should provide
two version of the filemap function, but I am not sure if open(), mmap() 
and munmap()
have UTF-16 versions.

I suggest you file a bug report, and if you so feel inclined, provide a 
patch.
Its a community supported project after all.
> If xmlwf is not required, is there a proper way to remove it from the
> build or should I just yank it from the makefile?
>   

I think you can just build the libs using the buildlib and installlib 
targets.

Karl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.