Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 22:33:19 +1300
From:      Andrew Turner <andrew@fubar.geek.nz>
To:        Stefan Farfeleder <stefan@fafoe.narf.at>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Unsigned wchar_t
Message-ID:  <20110328223319.4df096b2@fubar.geek.nz>
In-Reply-To: <20110327200729.GD2651@mole.fafoe.narf.at>
References:  <20110328083657.35507caf@fubar.geek.nz> <20110327200729.GD2651@mole.fafoe.narf.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 27 Mar 2011 22:07:30 +0200
Stefan Farfeleder <stefan@fafoe.narf.at> wrote:

> On Mon, Mar 28, 2011 at 08:36:57AM +1300, Andrew Turner wrote:
> > Along with this WCHAR_MIN and WCHAR_MAX are defined both in
> > <wchar.h> and <machine/_stdint.h>. I would like to remove the copy
> > from wchar.h and add an include to machine/_stdint.h.
> > 
> > Would there be any problems with either of these or is there a
> > better place to put the __wchar_t typedef and define WCHAR_MIN and
> > WCHAR_MAX?
> 
> The C standard specifies that both <wchar.h> and <stdint.h> shall
> define WCHAR_MIN and WCHAR_MAX. You cannot simply include
> <machine/_stdint.h> from <wchar.h> because the former contains a lot
> of other macros.
I thought that might be the case. I could create <machine/_wchar.h> for
the defines unless there is a better place for them.

Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110328223319.4df096b2>