Xmd.h: Treat __ILP32__ targets as LONG32 ones

amd64-x32 ABI defines sizeof(long) == sizeof (void*) == 4

Noticed on build failure of libXmu:
  libXmu-1.1.0/work/libXmu-1.1.0/src/EditresCom.c: In function '_XEditresGetStringValues':
  libXmu-1.1.0/work/libXmu-1.1.0/src/EditresCom.c:2198:6: error: duplicate case value
  libXmu-1.1.0/work/libXmu-1.1.0/src/EditresCom.c:2194:6: error: previously used here

More info about x32: https://sites.google.com/site/x32abi/

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: James Cloos <cloos@jhcloos.com>
This commit is contained in:
Sergei Trofimovich 2011-12-20 16:43:44 +03:00 committed by James Cloos
parent a6651a8d81
commit a06fa7fc98
No known key found for this signature in database
GPG key ID: 23C6CDF7272D9D43

4
Xmd.h
View file

@ -64,7 +64,9 @@ SOFTWARE.
defined(__s390x__) || \
defined(__amd64__) || defined(amd64) || \
defined(__powerpc64__)
# define LONG64 /* 32/64-bit architecture */
# if !defined(__ILP32__) /* amd64-x32 is 32bit */
# define LONG64 /* 32/64-bit architecture */
# endif /* !__ILP32__ */
# endif
/*