summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xmd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Xmd.h b/Xmd.h
index f3868b3..96cc08f 100644
--- a/Xmd.h
+++ b/Xmd.h
@@ -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
/*