diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-04-11 08:07:30 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-04-11 08:07:30 +0000 |
commit | 1b98373a408e605782afb70f1c1a94363c1fdaad (patch) | |
tree | cedf07a8edd9f06b31f81e58561d4c1f3d0de7a1 | |
parent | 1318037e447dd88aed345e9748005b46802f50d2 (diff) | |
download | newlib-1b98373a408e605782afb70f1c1a94363c1fdaad.zip newlib-1b98373a408e605782afb70f1c1a94363c1fdaad.tar.gz newlib-1b98373a408e605782afb70f1c1a94363c1fdaad.tar.bz2 |
* include/stdint.h (INTPTR_MIN, INTPTR_MAX): Add 'L' suffix.
(WINT_MAX): Add 'U' suffix.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/include/stdint.h | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6831ea1..ad622a2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-04-11 Dave Korn <dave.korn.cygwin@googlemail.com> + + * include/stdint.h (INTPTR_MIN, INTPTR_MAX): Add 'L' suffix. + (WINT_MAX): Add 'U' suffix. + 2009-04-10 Christopher Faylor <me+cygwin@cgf.cx> * speclib: Use a more robust method to derive full file path. diff --git a/winsup/cygwin/include/stdint.h b/winsup/cygwin/include/stdint.h index 7ea000f..47c5914 100644 --- a/winsup/cygwin/include/stdint.h +++ b/winsup/cygwin/include/stdint.h @@ -119,8 +119,8 @@ typedef unsigned long long uintmax_t; /* Limits of integer types capable of holding object pointers */ -#define INTPTR_MIN (-2147483647 - 1) -#define INTPTR_MAX (2147483647) +#define INTPTR_MIN (-2147483647L - 1L) +#define INTPTR_MAX (2147483647L) #define UINTPTR_MAX (4294967295UL) /* Limits of greatest-width integer types */ @@ -144,7 +144,7 @@ typedef unsigned long long uintmax_t; #endif #ifndef SIZE_MAX -#define SIZE_MAX (4294967295UL) +#define SIZE_MAX (4294967295U) #endif #ifndef WCHAR_MIN @@ -159,7 +159,7 @@ typedef unsigned long long uintmax_t; #ifndef WINT_MIN #define WINT_MIN 0U -#define WINT_MAX UINT_MAX +#define WINT_MAX (4294967295U) #endif /* Macros for minimum-width integer constant expressions */ |