Date: Tue, 09 Jul 2002 16:10:02 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: ticso@cicely.de Cc: freebsd-current@freebsd.org Subject: Re: stdlib.h wchar_t problem Message-ID: <3D2B6D4A.D382E7FF@mindspring.com> References: <20020709020950.GS94279@cicely5.cicely.de> <3D2A49D2.7AF1DB5F@mindspring.com> <20020709140851.GC94279@cicely5.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------5E0558677DACEC62F8CC45D8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Bernd Walter wrote: > On Mon, Jul 08, 2002 at 07:26:26PM -0700, Terry Lambert wrote: > > I posted a patch for this already, based on Garrett Wollman's > > point about where theings are defined (actually, it requires a > > non-definition one up from the one Garrett noted as the problem). > > I did a complete reinstall of /usr/includes without a difference, but > my source is from 3. Jul. > Do you remember which commit it fixed? > I wasn't able to find one that would explain a difference. Looking at the sources, my patch was apparently not committed: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/include/ansi.h Please apply the attached patch. It only deals with the problem for i386. A similar patch is needed for other architectures. -- Terry --------------5E0558677DACEC62F8CC45D8 Content-Type: text/plain; charset=us-ascii; name="ansi.h.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ansi.h.diff" Index: ansi.h =================================================================== RCS file: /usr/cvs/src/sys/i386/include/ansi.h,v retrieving revision 1.18.2.4 diff -c -r1.18.2.4 ansi.h *** ansi.h 3 Jun 2001 17:15:54 -0000 1.18.2.4 --- ansi.h 18 Jun 2002 02:57:49 -0000 *************** *** 56,62 **** --- 56,64 ---- #define _BSD_SSIZE_T_ int /* byte count or error */ #define _BSD_TIME_T_ long /* time()... */ #define _BSD_TIMER_T_ int /* timer_gettime()... */ + #if __GNUC__ < 3 || !defined(__cplusplus) #define _BSD_WCHAR_T_ _BSD_CT_RUNE_T_ /* wchar_t (see below) */ + #endif #define _BSD_WINT_T_ _BSD_CT_RUNE_T_ /* wint_t (see below) */ /* --------------5E0558677DACEC62F8CC45D8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D2B6D4A.D382E7FF>