1
Fork 0
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:
pcpa 2013-09-09 19:19:45 -03:00
parent b8770059dc
commit b279feb7c5

View file

@ -48,8 +48,13 @@
# else
# define __WORDSIZE 64
# endif
# else /* From FreeBSD 9.1 stdint.h */
# if defined(UINTPTR_MAX) && defined(UINT64_MAX) && \
(UINTPTR_MAX == UINT64_MAX)
# define __WORDSIZE 64
# else
# error cannot figure __WORDSIZE
# define __WORDSIZE 32
# endif
# endif
#endif
#ifndef __LITTLE_ENDIAN