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:
parent
931b4a6ddc
commit
c037832c65
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue