This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: EGCS-19990502 and ANSI C
- To: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Subject: Re: EGCS-19990502 and ANSI C
- From: "IronCode" <ironcode at bulnet dot bg>
- Date: Thu, 13 May 1999 22:55:09 +0300
- Cc: <egcs-bugs at egcs dot cygnus dot com>, <oliva at lua dot lbi dot dcc dot unicamp dot br>, <kthomas at gwdg dot de>
> There is a number of problems here. First, the Linux header files (in
> particular posix_types.h) should really attempt to include the
> compiler's stddef.h, at least if __KERNEL__ is not defined (see
> ip_masq for an example which is correct).
Yes, it should... But instead, posix_types.h just does the following:
#ifndef NULL
# define NULL ((void *) 0)
#endif
I guess they don't want to rely on other header files, but they should
really fix this. I'll suggest them right away ;-) And ip_masq.h is really
the best example what's the right way, 10x a lot :-)
> The right fix is to include <stddef.h> before including the kernel
> header.
Yeah, that works, thanks :-)
Well, thanks a lot to all of you:
Stoyan Iordanov