diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-30 17:25:23 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-30 17:25:23 -0700 |
commit | 3a257e668e41fa6bab6b758adbe508b8fe32e2d2 (patch) | |
tree | d4e1b5f18a982fd6b780482abb46351b4acf830c /sysdeps/x86 | |
parent | 62f62904cf2196c8593f31170a8df9b06e76e431 (diff) | |
download | glibc-3a257e668e41fa6bab6b758adbe508b8fe32e2d2.zip glibc-3a257e668e41fa6bab6b758adbe508b8fe32e2d2.tar.gz glibc-3a257e668e41fa6bab6b758adbe508b8fe32e2d2.tar.bz2 |
Use x86_64 bits/wordsize.h for both i386/x86_64
Diffstat (limited to 'sysdeps/x86')
-rw-r--r-- | sysdeps/x86/bits/wordsize.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/x86/bits/wordsize.h b/sysdeps/x86/bits/wordsize.h new file mode 100644 index 0000000..e25af28 --- /dev/null +++ b/sysdeps/x86/bits/wordsize.h @@ -0,0 +1,13 @@ +/* Determine the wordsize from the preprocessor defines. */ + +#if defined __x86_64__ && !defined __ILP32__ +# define __WORDSIZE 64 +#else +# define __WORDSIZE 32 +#endif + +#ifdef __x86_64__ +# define __WORDSIZE_TIME64_COMPAT32 1 +/* Both x86-64 and x32 use the 64-bit system call interface. */ +# define __SYSCALL_WORDSIZE 64 +#endif |