mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08:00
9abdae94c7
These structs describe file formats under /var/log, and should not depend on the definition of _TIME_BITS. This is achieved by defining __WORDSIZE_TIME64_COMPAT32 to 1 on 32-bit ports that support 32-bit time_t values (where __time_t is 32 bits). Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
17 lines
398 B
C
17 lines
398 B
C
/* Determine the wordsize from the preprocessor defines. */
|
|
|
|
#if defined __x86_64__ && !defined __ILP32__
|
|
# define __WORDSIZE 64
|
|
#else
|
|
# define __WORDSIZE 32
|
|
#define __WORDSIZE32_SIZE_ULONG 0
|
|
#define __WORDSIZE32_PTRDIFF_LONG 0
|
|
#endif
|
|
|
|
#define __WORDSIZE_TIME64_COMPAT32 1
|
|
|
|
#ifdef __x86_64__
|
|
/* Both x86-64 and x32 use the 64-bit system call interface. */
|
|
# define __SYSCALL_WORDSIZE 64
|
|
#endif
|