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

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Stefan



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