1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 13:20:26 +02:00

SCM_IS_BIG_ENDIAN in scmconfig.h

* libguile/gen-scmconfig.c (main): Define SCM_IS_BIG_ENDIAN here.
This commit is contained in:
Andy Wingo 2011-05-12 15:59:03 +02:00
parent 931b4a6ddc
commit c037832c65

View file

@ -283,6 +283,14 @@ main (int argc, char *argv[])
pf ("/* Size of uintptr_t or 0 if not available */\n");
pf ("#define SCM_SIZEOF_UINTPTR_T %d\n", SIZEOF_UINTPTR_T);
pf ("\n");
pf ("/* Byte order */\n");
#ifdef WORDS_BIGENDIAN
pf ("#define SCM_IS_BIG_ENDIAN 1\n");
#else
pf ("#define SCM_IS_BIG_ENDIAN 0\n");
#endif
pf ("\n");
pf ("/* same as POSIX \"struct timespec\" -- always defined */\n");
#ifdef HAVE_STRUCT_TIMESPEC