Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add __ILP32__ check when defining __WORDSIZE

  • Loading branch information...
commit 7e73e17d3f34799fe3108391197198a1cd1adb08 1 parent c7a6ab7
@hjl-tools hjl-tools authored
Showing with 6 additions and 1 deletion.
  1. +5 −0 ChangeLog
  2. +1 −1  sysdeps/x86_64/bits/wordsize.h
View
5 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
View
2  sysdeps/x86_64/bits/wordsize.h
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.