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

Alan Coopersmith alan.coopersmith at oracle.com
Tue Dec 20 08:41:44 PST 2011

On 12/20/11 08:37, Sergei Trofimovich wrote:
> +     (defined(__amd64__)&&  defined(__LP64__)) /* skip x32 */ || \
> +     defined(amd64) || \

Really?  Someone defined __amd64__ on a non LP64 platform and didn't expect
to break tons of software?   Amazing...

I'd expect damage from such idiocy to go much deeper in X than just that
one header, though that's probably the starting point.

Are you sure that every real amd64 platform that uses __amd64__ defines __LP64__
as well?

	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System

More information about the xorg-devel mailing list