This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: linux libio status
- To: Peter Seebach <seebs at monolith dot solon dot com>
- Subject: Re: linux libio status
- From: Jason Merrill <jason at cygnus dot com>
- Date: 15 Oct 1997 22:29:02 -0700
- Cc: egcs at cygnus dot com
- References: <199710160316.WAA21814@monolith.solon.com>
>>>>> Peter Seebach <seebs@monolith.solon.com> writes:
> In message <u9zpoarh0w.fsf@yorick.cygnus.com>, Jason Merrill writes:
>> This is why we have a NULL macro. The gcc stddef.h provides an appropriate
>> definition, so we can put
>> #undef NULL
>> #define __need_NULL
>> #include <stddef.h>
>> #undef __need_NULL
>> somewhere strategic, and that should do the trick.
> Well, strictly speaking, I don't think that's correct - I *believe* a
> user who has not included <stddef.h> is allowed to assume that not everything
> in it is defined.
That's why we define __need_NULL. That tells the gcc stddef.h that we only
want the definition of NULL, and nothing else.
Jason