diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-07 12:16:10 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-03-07 12:16:10 -0500 |
| commit | ce76de35f1671bf7b75e98d6d61378edef382d60 (patch) | |
| tree | b9212b6fd35100178775a7e6695292c35ab80b29 /libc/include/powerpc-linux-gnu/bits/wordsize.h | |
| parent | 189fba4390c3a748d33e0f72a305f0d6bdbfe7c0 (diff) | |
| download | zig-ce76de35f1671bf7b75e98d6d61378edef382d60.tar.gz zig-ce76de35f1671bf7b75e98d6d61378edef382d60.zip | |
multi-arch glibc headers
Diffstat (limited to 'libc/include/powerpc-linux-gnu/bits/wordsize.h')
| -rw-r--r-- | libc/include/powerpc-linux-gnu/bits/wordsize.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/include/powerpc-linux-gnu/bits/wordsize.h b/libc/include/powerpc-linux-gnu/bits/wordsize.h new file mode 100644 index 0000000000..37836f9d4e --- /dev/null +++ b/libc/include/powerpc-linux-gnu/bits/wordsize.h @@ -0,0 +1,11 @@ +/* Determine the wordsize from the preprocessor defines. */ + +#if defined __powerpc64__ +# define __WORDSIZE 64 +# define __WORDSIZE_TIME64_COMPAT32 1 +#else +# define __WORDSIZE 32 +# define __WORDSIZE_TIME64_COMPAT32 0 +# define __WORDSIZE32_SIZE_ULONG 0 +# define __WORDSIZE32_PTRDIFF_LONG 0 +#endif
\ No newline at end of file |
