This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Preliminary mainline patch for __attribute__ ((sentinel))


On Sat, Aug 28, 2004 at 02:39:31PM -0400, Kaveh R. Ghazi wrote:
> Hmm, it looks like GCC's stddef.h is more aggresive in insisting on
> it's own definition of NULL than I realized.  It undef's the old one
> rather than doing an ifndef check.  So as long as stddef.h is
> included, in any order relative to other headers, you'll get the GCC
> preferred definition of (void*)0.  So I don't see a need to insist on
> my position.

I've finally restored OpenBSD-i386 to bootstrap land on mainline.
It looks like you're wrong. The copy of fixinclude'd stddef.h I'm looking
at does nothing of the sort. What I see is still:

#ifndef NULL
#ifdef  __GNUG__
#define NULL    __null
#else
#define NULL    0L
#endif
#endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]