diff options
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/powerpc32/bits/wordsize.h (renamed from sysdeps/powerpc/bits/wordsize.h) | 1 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/bits/wordsize.h | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/powerpc/bits/wordsize.h b/sysdeps/powerpc/powerpc32/bits/wordsize.h index d856583..1a79c86 100644 --- a/sysdeps/powerpc/bits/wordsize.h +++ b/sysdeps/powerpc/powerpc32/bits/wordsize.h @@ -2,6 +2,7 @@ #if defined __powerpc64__ # define __WORDSIZE 64 +# define __WORDSIZE_COMPAT32 1 #else # define __WORDSIZE 32 #endif diff --git a/sysdeps/powerpc/powerpc64/bits/wordsize.h b/sysdeps/powerpc/powerpc64/bits/wordsize.h new file mode 100644 index 0000000..1a79c86 --- /dev/null +++ b/sysdeps/powerpc/powerpc64/bits/wordsize.h @@ -0,0 +1,8 @@ +/* Determine the wordsize from the preprocessor defines. */ + +#if defined __powerpc64__ +# define __WORDSIZE 64 +# define __WORDSIZE_COMPAT32 1 +#else +# define __WORDSIZE 32 +#endif |