This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Add <stdint.h> integer width macros
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.