software/include/base: Check __LP64__ instead of __WORDSIZE
__WORDSIZE is defined by glibc, not by the compiler. Hence it is never defined for us, and checking __WORDSIZE to determine the size of "long" thus causes subtle misbehavings. Fix this by checking for the presence of __LP64__ instead. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
41964f945c
commit
e0786c3f94
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
# if __WORDSIZE == 64
|
||||
# ifdef __LP64__
|
||||
# define __PRI64_PREFIX "l"
|
||||
# define __PRIPTR_PREFIX "l"
|
||||
# else
|
||||
|
|
|
@ -65,7 +65,7 @@ static inline unsigned long lfsr(unsigned long bits, unsigned long prev)
|
|||
0x20000029,
|
||||
0x48000000,
|
||||
0x80200003,
|
||||
#if __WORDSIZE == 64
|
||||
#ifdef __LP64__
|
||||
0x100080000,
|
||||
0x204000003,
|
||||
0x500000000,
|
||||
|
|
Loading…
Reference in New Issue