mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-06 04:00:26 +02:00
Add fallback logic instead of error if cannot figure __WORDSIZE.
This was an issue on FreeBSD 8.x, and the logic used is the same as FreeBSD 9.1 stdint.h.
This commit is contained in:
parent
b8770059dc
commit
b279feb7c5
1 changed files with 7 additions and 2 deletions
|
@ -48,8 +48,13 @@
|
|||
# else
|
||||
# define __WORDSIZE 64
|
||||
# endif
|
||||
# else
|
||||
# error cannot figure __WORDSIZE
|
||||
# else /* From FreeBSD 9.1 stdint.h */
|
||||
# if defined(UINTPTR_MAX) && defined(UINT64_MAX) && \
|
||||
(UINTPTR_MAX == UINT64_MAX)
|
||||
# define __WORDSIZE 64
|
||||
# else
|
||||
# define __WORDSIZE 32
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#ifndef __LITTLE_ENDIAN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue