[Expat-discuss] darwin and expat

Karl Waclawek karl at waclawek.net
Thu May 18 20:26:03 CEST 2006


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


More information about the Expat-discuss mailing list