Re: eXpat and Windows 64-bits

Karl Waclawek <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
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
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.