[Expat-discuss] eXpat and Windows 64-bits

Karl Waclawek karl at waclawek.net
Fri Apr 14 19:22:38 CEST 2006


Philippe Morange wrote:
> Hi,
> I need to port eXpat under Windows 64-bits.
> Has it already been done ?
> If not, what would I need to know, before trying that ?
> I will probably use Microsoft Visual Studio to do that...
>
>   

Actually, I built Expat on VS 2005 with 64bit portability warnings 
turned on,
and found one minor issue with the MUST_CONVERT macro. I checked in
this patch for xmlparse.c:

-#define MUST_CONVERT(enc, s) (!(enc)->isUtf16 || (((unsigned long)s) & 1))
+#define MUST_CONVERT(enc, s) (!(enc)->isUtf16 || ((s - NULL) & 1))

Some of the demo programs have integer conversion warnings as well, but it
should be safe to cast them away.

Karl


More information about the Expat-discuss mailing list