Add __ILP32__ check when defining __WORDSIZE
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 13 Apr 2012 23:17:14 +0000 (16:17 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 13 Apr 2012 23:17:14 +0000 (16:17 -0700)
ChangeLog
sysdeps/x86_64/bits/wordsize.h

index 2a331e6..718824d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
+       __ILP32__.
+
 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
 
        * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
index a40a0d8..9b38756 100644 (file)
@@ -1,6 +1,6 @@
 /* Determine the wordsize from the preprocessor defines.  */
 
-#if defined __x86_64__
+#if defined __x86_64__ && !defined __ILP32__
 # define __WORDSIZE    64
 # define __WORDSIZE_COMPAT32   1
 #else