[xproto: PATCH] Xmd.h: amd64-x32 ABI defines sizeof(long) == sizeof (void*) == 4

Sergei Trofimovich slyfox at gentoo.org
Tue Dec 20 09:27:58 PST 2011


On Tue, 20 Dec 2011 18:02:18 +0100 (CET)
Mark Kettenis <mark.kettenis at xs4all.nl> wrote:

> > Date: Tue, 20 Dec 2011 08:41:44 -0800
> > From: Alan Coopersmith <alan.coopersmith at oracle.com>
> > 
> > Are you sure that every real amd64 platform that uses __amd64__
> > defines __LP64__ as well?
> 
> Not sure if you'd call 64-bit Windows a real amd64 platform, but given
> that Microsoft made the brilliant decision to use the LLP64 mode, it
> certainly won't define __LP64__.
> 

The whole #ifdefery is about sizeof long ==8, right?

So the code does not work correctly on MSVC in it's present form
and will work correctly with path.

-- 

  Sergei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20111220/e94a8dfb/attachment.pgp>


More information about the xorg-devel mailing list