This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [libstdc++] numeric_limits.cc check the wchar_t limits facility
- To: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Subject: Re: [libstdc++] numeric_limits.cc check the wchar_t limits facility
- From: Andreas Schwab <schwab at suse dot de>
- Date: 26 Oct 2001 20:11:51 +0200
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, bkoz at redhat dot com
- References: <Pine.LNX.4.21.0110261911510.29872-100000@snake.iap.physik.tu-darmstadt.de>
Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> writes:
|> I have no idea how to check for the signedness of wchar_t since two
|> targets define it as unsigned (hpux, aix) in contrast to all others
|> and I see no way of getting access to this information in a
|> painless way.
Does this work?
#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
Andreas.
--
Andreas Schwab "And now for something
Andreas.Schwab@suse.de completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5