Date: Fri, 12 Feb 1999 10:51:44 -0500 Message-Id: <199902121551.KAA18371@envy.delorie.com> From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: <199902121424.OAA33988@out2.ibm.net> (snowball3@usa.net) Subject: Re: patch for stddef.h References: <199902121424 DOT OAA33988 AT out2 DOT ibm DOT net> Reply-To: djgpp-workers AT delorie DOT com This is only half a patch. You also need to patch sys/djtypes.h What's a wint_t, anyway? > After going back and forth with the libstdc++ v3 guys, I don't appear to > be getting my way. According to the c9x fcd, the types listed as being > defined in stddef.h don't include wint_t. But they insist that gcc's > stddef.h includes wint_t and if your stddef.h doesn't include it, too bad. > So, here's a patch to add a definition of wint_t to stddef.h in the non- > Ansi, non-Posix section. > > *** stddef.h.orig Wed Dec 7 02:02:08 1994 > --- stddef.h Fri Feb 12 09:16:10 1999 > *************** > *** 24,31 **** > --- 24,35 ---- > #ifndef __STRICT_ANSI__ > > #ifndef _POSIX_SOURCE > > + __DJ_wint_t > + #undef __DJ_wint_t > + #define __DJ_wint_t > + > #endif /* !_POSIX_SOURCE */ > #endif /* !__STRICT_ANSI__ */ > #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */ > > > --- > Mark Elbrecht snowball3 AT usa DOT net > http://members.xoom.com/snowball3/ >