This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: C standard, wint_t, and stddef.h
- To: "Mark E." <snowball3@usa.net>
- Subject: Re: C standard, wint_t, and stddef.h
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 11 Feb 1999 17:18:31 -0800
- Cc: libstdc++-v3@cygnus.com
- References: <199902120057.AAA113426@out4.ibm.net>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
"Mark E." <snowball3@usa.net> writes:
> Unfortunately, I hit the delete button too quick on the issue of stddef.h
> and wint._t. According to my reference, wint_t is not listed as being
> defined stddef.h but wchar_t is. It is defined in wctype.h, so
> wmemcmp.c could be patched as so:
Why? The stddef.h header of gcc contains the definitions for wint_t
and wchar_t. Therefore libstdc++ (which is tightly linked to the
compiler version) can rely on these symbols. If some port has its own
stddef.h version and currently misses these definitions its something
which should be corrected in these stddef.h copies and not some
perfectly correct code. Fix it in one place instead of hacking around
the problem in lots of other places.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------