This is the mail archive of the gcc-bugs@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]

Re: EGCS-19990502 and ANSI C


> 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


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