diff options
author | Mark Mitchell <mark@codesourcery.com> | 2008-05-02 14:52:56 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2008-05-02 14:52:56 +0000 |
commit | df93e6f193fbf8a746d43d785af2260211961f01 (patch) | |
tree | 3011992b98fe9a76c9da4b0320a5c2eb82526be4 /newlib/libc/include/stdint.h | |
parent | cce741c409bbd77b7a648dcf9bed8f7fba169352 (diff) | |
download | cygnal-df93e6f193fbf8a746d43d785af2260211961f01.tar.gz cygnal-df93e6f193fbf8a746d43d785af2260211961f01.tar.bz2 cygnal-df93e6f193fbf8a746d43d785af2260211961f01.zip |
* libc/include/stdint.h (SIZE_MIN): Remove.
(SIZE_MAX): Define.
* testsuite/newlib.stdlib/stdlib.exp: New.
* testsuite/newlib.stdlib/size_max.c: Likewise.
Diffstat (limited to 'newlib/libc/include/stdint.h')
-rw-r--r-- | newlib/libc/include/stdint.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h index 1fa36517a..821462d8a 100644 --- a/newlib/libc/include/stdint.h +++ b/newlib/libc/include/stdint.h @@ -348,8 +348,7 @@ typedef unsigned long uintptr_t; #endif /* This must match size_t in stddef.h, currently long unsigned int */ -#define SIZE_MIN (-__STDINT_EXP(LONG_MAX) - 1L) -#define SIZE_MAX __STDINT_EXP(LONG_MAX) +#define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1) /* This must match sig_atomic_t in <signal.h> (currently int) */ #define SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1) |