diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2005-05-04 09:29:09 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2005-05-04 09:29:09 +0000 |
commit | f3b00363042bd97ec1adebc976ef4012d93142f1 (patch) | |
tree | 5ab41ed1f2c4ef6abb466533e5b1c1dbb6e9709b /winsup/mingw | |
parent | 530d0e0191328b1f663f05d54dd2c44a1d911b0e (diff) | |
download | newlib-f3b00363042bd97ec1adebc976ef4012d93142f1.zip newlib-f3b00363042bd97ec1adebc976ef4012d93142f1.tar.gz newlib-f3b00363042bd97ec1adebc976ef4012d93142f1.tar.bz2 |
* include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
#if (WCHAR_MAX <= WCHAR_MIN) is false.
* include/stdint.h (WCHAR_MAX): Likwise.
(WINT_MAX): Likewise.
Diffstat (limited to 'winsup/mingw')
-rw-r--r-- | winsup/mingw/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/mingw/include/stdint.h | 4 | ||||
-rw-r--r-- | winsup/mingw/include/wchar.h | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 97272e8..989da3b 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,10 @@ +2005-05-04 Danny Smith <dannysmith@users.sourceforge.net> + + * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor + #if (WCHAR_MAX <= WCHAR_MIN) is false. + * include/stdint.h (WCHAR_MAX): Likwise. + (WINT_MAX): Likewise. + 2005-05-03 Danny Smith <dannysmith@users.sourceforge.net> * mingwex/math/signbit.c (__signbit): Make return value diff --git a/winsup/mingw/include/stdint.h b/winsup/mingw/include/stdint.h index 2ea752f..5241d48 100644 --- a/winsup/mingw/include/stdint.h +++ b/winsup/mingw/include/stdint.h @@ -137,14 +137,14 @@ typedef unsigned long long uintmax_t; #ifndef WCHAR_MIN /* also in wchar.h */ #define WCHAR_MIN 0 -#define WCHAR_MAX ((wchar_t)-1) /* UINT16_MAX */ +#define WCHAR_MAX 0xffff /* UINT16_MAX */ #endif /* * wint_t is unsigned short for compatibility with MS runtime */ #define WINT_MIN 0 -#define WINT_MAX ((wint_t)-1) /* UINT16_MAX */ +#define WINT_MAX 0xffff /* UINT16_MAX */ #endif /* !defined ( __cplusplus) || defined __STDC_LIMIT_MACROS */ diff --git a/winsup/mingw/include/wchar.h b/winsup/mingw/include/wchar.h index 54dc17f..2f5c6a9 100644 --- a/winsup/mingw/include/wchar.h +++ b/winsup/mingw/include/wchar.h @@ -51,7 +51,7 @@ #endif /* __STRICT_ANSI__ */ #define WCHAR_MIN 0 -#define WCHAR_MAX ((wchar_t)-1) +#define WCHAR_MAX 0xffff #ifndef WEOF #define WEOF (wchar_t)(0xFFFF) |