NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: standards/46276: CHAR_MAX/CHAR_MIN don't change with -funsigned-char

On Wed, Mar 28, 2012 at 06:55:02PM +0000, Alan Barrett wrote:
 >  On Wed, 28 Mar 2012, David Holland wrote:
 >  > uwe says gcc provides __CHAR_UNSIGNED__ to test with.
 >  __type_is_signed(char) should also work, with recent sys/cdefs.h.

That uses sizeof and won't work in a cpp conditional.

David A. Holland

Home | Main Index | Thread Index | Old Index