[libXt: PATCH] amd64-x32 ABI defines sizeof(long) == sizeof (void*) == 4

Sergei Trofimovich slyfox at gentoo.org
Tue Dec 20 08:42:47 PST 2011


Follow changes from xproto/Xmd.h

Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
---
 include/X11/Xtos.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/X11/Xtos.h b/include/X11/Xtos.h
index 7079321..9572237 100644
--- a/include/X11/Xtos.h
+++ b/include/X11/Xtos.h
@@ -62,7 +62,8 @@ SOFTWARE.
     defined(__sparc64__) || \
     defined(__s390x__) || \
     (defined(__hppa__) && defined(__LP64__)) || \
-    defined(__amd64__) || defined(amd64) || \
+    (defined(__amd64__) && defined(__LP64__)) /* skip x32 */ || \
+    defined(amd64) || \
     defined(__powerpc64__) || \
     (defined(sgi) && (_MIPS_SZLONG == 64))
 #define LONG64
-- 
1.7.8



More information about the xorg-devel mailing list