mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
Make `SCM_LONG_BIT' usable in preprocessor conditionals.
Reported by Jan Schukat <shookie@email.de>. Partly fixes <http://bugs.gnu.org/13848>. * libguile/__scm.h (SCM_LONG_BIT)[!defined LONG_BIT]: Use SCM_SIZEOF_LONG since `sizeof' cannot be used in #if directives as found in numbers.c.
This commit is contained in:
parent
e6a7a86d7e
commit
6db7ee7b3a
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@
|
|||
#ifdef LONG_BIT
|
||||
# define SCM_LONG_BIT LONG_BIT
|
||||
#else
|
||||
# define SCM_LONG_BIT (SCM_CHAR_BIT * sizeof (long) / sizeof (char))
|
||||
# define SCM_LONG_BIT (SCM_SIZEOF_LONG * 8)
|
||||
#endif
|
||||
|
||||
#define SCM_I_UTYPE_MAX(type) ((type)-1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue