mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 12:20:26 +02:00
(SIZE_MAX, PTRDIFF_MIN, PTRDIFF_MAX): Only define when
they aren't defined already.
This commit is contained in:
parent
62af908b27
commit
6aed915c79
1 changed files with 9 additions and 1 deletions
|
@ -4200,10 +4200,18 @@ scm_i_big2dbl (SCM b)
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX ((size_t) (-1))
|
||||
#endif
|
||||
|
||||
#ifndef PTRDIFF_MIN
|
||||
/* the below is not really guaranteed to work (I think), but probably does: */
|
||||
#define PTRDIFF_MIN ((ptrdiff_t) ((ptrdiff_t)1 << (sizeof (ptrdiff_t) * 8 - 1)))
|
||||
#define PTRDIFF_MIN ((ptrdiff_t) ((ptrdiff_t)1 << (sizeof (ptrdiff_t)*8 - 1)))
|
||||
#endif
|
||||
|
||||
#ifndef PTRDIFF_MAX
|
||||
#define PTRDIFF_MAX (~ PTRDIFF_MIN)
|
||||
#endif
|
||||
|
||||
#define NUM2INTEGRAL scm_num2short
|
||||
#define INTEGRAL2NUM scm_short2num
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue