* libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.
(WCHAR_MAX): Ditto. * libc/include/wchar.h (WCHAR_MIN): Add comment. (WCHAR_MAX): Ditto.
This commit is contained in:
parent
3ad50ff74a
commit
c57ccec649
@ -1,3 +1,10 @@
|
|||||||
|
2014-05-12 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
|
* libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.
|
||||||
|
(WCHAR_MAX): Ditto.
|
||||||
|
* libc/include/wchar.h (WCHAR_MIN): Add comment.
|
||||||
|
(WCHAR_MAX): Ditto.
|
||||||
|
|
||||||
2014-05-09 Corinna Vinschen <vinschen@redhat.com>
|
2014-05-09 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
* libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE or
|
* libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE or
|
||||||
|
@ -423,11 +423,26 @@ typedef __uintptr_t uintptr_t;
|
|||||||
#endif
|
#endif
|
||||||
#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
|
#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
|
||||||
|
|
||||||
#ifdef __WCHAR_MAX__
|
/* This must match definition in <wchar.h> */
|
||||||
#define WCHAR_MAX __WCHAR_MAX__
|
#ifndef WCHAR_MIN
|
||||||
#endif
|
|
||||||
#ifdef __WCHAR_MIN__
|
#ifdef __WCHAR_MIN__
|
||||||
#define WCHAR_MIN __WCHAR_MIN__
|
#define WCHAR_MIN __WCHAR_MIN__
|
||||||
|
#elif defined(__WCHAR_UNSIGNED__) || (L'\0' - 1 > 0)
|
||||||
|
#define WCHAR_MIN (0 + L'\0')
|
||||||
|
#else
|
||||||
|
#define WCHAR_MIN (-0x7fffffff - 1 + L'\0')
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* This must match definition in <wchar.h> */
|
||||||
|
#ifndef WCHAR_MAX
|
||||||
|
#ifdef __WCHAR_MAX__
|
||||||
|
#define WCHAR_MAX __WCHAR_MAX__
|
||||||
|
#elif defined(__WCHAR_UNSIGNED__) || (L'\0' - 1 > 0)
|
||||||
|
#define WCHAR_MAX (0xffffffffu + L'\0')
|
||||||
|
#else
|
||||||
|
#define WCHAR_MAX (0x7fffffff + L'\0')
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* wint_t is unsigned int on almost all GCC targets. */
|
/* wint_t is unsigned int on almost all GCC targets. */
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
# define WEOF ((wint_t)-1)
|
# define WEOF ((wint_t)-1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* This must match definition in <stdint.h> */
|
||||||
#ifndef WCHAR_MIN
|
#ifndef WCHAR_MIN
|
||||||
#ifdef __WCHAR_MIN__
|
#ifdef __WCHAR_MIN__
|
||||||
#define WCHAR_MIN __WCHAR_MIN__
|
#define WCHAR_MIN __WCHAR_MIN__
|
||||||
@ -34,6 +35,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* This must match definition in <stdint.h> */
|
||||||
#ifndef WCHAR_MAX
|
#ifndef WCHAR_MAX
|
||||||
#ifdef __WCHAR_MAX__
|
#ifdef __WCHAR_MAX__
|
||||||
#define WCHAR_MAX __WCHAR_MAX__
|
#define WCHAR_MAX __WCHAR_MAX__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user