S390: Define SIZE_MAX as unsigned long (BZ #16712).
This commit is contained in:
parent
a2d86bf1ec
commit
26011b5cfa
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2014-03-24 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
[BZ #16712]
|
||||||
|
* sysdeps/s390/s390-32/bits/wordsize.h
|
||||||
|
(__WORDSIZE32_SIZE_ULONG): New define.
|
||||||
|
* sysdeps/s390/s390-64/bits/wordsize.h
|
||||||
|
(__WORDSIZE32_SIZE_ULONG): Likewise.
|
||||||
|
* sysdeps/generic/stdint.h (SIZE_MAX):
|
||||||
|
Define as UL if __WORDSIZE32_SIZE_ULONG.
|
||||||
|
|
||||||
2014-03-24 Stefan Liebler <stli@linux.vnet.ibm.com>
|
2014-03-24 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||||
|
|
||||||
[BZ #16713]
|
[BZ #16713]
|
||||||
|
@ -260,7 +260,11 @@ typedef unsigned long long int uintmax_t;
|
|||||||
# if __WORDSIZE == 64
|
# if __WORDSIZE == 64
|
||||||
# define SIZE_MAX (18446744073709551615UL)
|
# define SIZE_MAX (18446744073709551615UL)
|
||||||
# else
|
# else
|
||||||
# define SIZE_MAX (4294967295U)
|
# ifdef __WORDSIZE32_SIZE_ULONG
|
||||||
|
# define SIZE_MAX (4294967295UL)
|
||||||
|
# else
|
||||||
|
# define SIZE_MAX (4294967295U)
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* Limits of `wchar_t'. */
|
/* Limits of `wchar_t'. */
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
# define __WORDSIZE 64
|
# define __WORDSIZE 64
|
||||||
#else
|
#else
|
||||||
# define __WORDSIZE 32
|
# define __WORDSIZE 32
|
||||||
|
# define __WORDSIZE32_SIZE_ULONG 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL
|
#if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
# define __WORDSIZE 64
|
# define __WORDSIZE 64
|
||||||
#else
|
#else
|
||||||
# define __WORDSIZE 32
|
# define __WORDSIZE 32
|
||||||
|
# define __WORDSIZE32_SIZE_ULONG 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL
|
#if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user