From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 27 20:22:50 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C3691065670 for ; Sun, 27 Mar 2011 20:22:50 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from fep22.mx.upcmail.net (fep22.mx.upcmail.net [62.179.121.42]) by mx1.freebsd.org (Postfix) with ESMTP id B4CEA8FC08 for ; Sun, 27 Mar 2011 20:22:49 +0000 (UTC) Received: from edge02.upcmail.net ([192.168.13.237]) by viefep20-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110327200734.JMHY23900.viefep20-int.chello.at@edge02.upcmail.net>; Sun, 27 Mar 2011 22:07:34 +0200 Received: from mole.fafoe.narf.at ([213.47.85.26]) by edge02.upcmail.net with edge id QL7X1g01G0a5KZh02L7Y2P; Sun, 27 Mar 2011 22:07:34 +0200 X-SourceIP: 213.47.85.26 Received: by mole.fafoe.narf.at (Postfix, from userid 1001) id 2D4586D449; Sun, 27 Mar 2011 22:07:31 +0200 (CEST) Date: Sun, 27 Mar 2011 22:07:30 +0200 From: Stefan Farfeleder To: Andrew Turner Message-ID: <20110327200729.GD2651@mole.fafoe.narf.at> References: <20110328083657.35507caf@fubar.geek.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110328083657.35507caf@fubar.geek.nz> User-Agent: Mutt/1.5.21 (2010-09-15) X-Cloudmark-Analysis: v=1.1 cv=kR4HTYXl3FXdRAFjS5RpcnDbDNViz/VYMWXR75RtSM0= c=1 sm=0 a=wom5GMh1gUkA:10 a=kj9zAlcOel0A:10 a=Gaqorc8aOXfLKk6E3KMA:9 a=trd_ArCYm0Nqc5ymy0uCi2sgijoA:4 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: freebsd-hackers@freebsd.org Subject: Re: Unsigned wchar_t X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2011 20:22:50 -0000 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 > and . 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 and shall define WCHAR_MIN and WCHAR_MAX. You cannot simply include from because the former contains a lot of other macros. Stefan