Add <stdint.h> integer width macros
Paul Eggert
eggert@cs.ucla.edu
Tue Sep 20 21:49:00 GMT 2016
On 09/20/2016 01:52 PM, Joseph Myers wrote:
> Compiling with -fshort-wchar is not compatible with using glibc; it's an
> ABI-breaking option.
That's OK, as stdint.h is also for freestanding programs, where there's
no wchar_t ABI to break.
> the fallback definitions in bits/wchar.h
> for compilers without such predefines make no atttempt to handle
> -fshort-wchar.
That's OK too, as it means glibc's WCHAR_MAX supports compilers that
either #define __WCHAR_MAX__ or have a 32-bit wchar_t. glibc's
WCHAR_WIDTH can do the same. Surely it would be unsporting for
WCHAR_WIDTH to disagree with WCHAR_MAX.
More information about the Libc-alpha
mailing list