EGCS-19990502 and ANSI C

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Mon May 31 21:06:00 GMT 1999


> That's weird, because NULL shouldn't have type void* in the first
> place; this is explicitly forbidden in the C++ Standard.  I wonder if
> there's not some hack to arrange that NULL is not defined to something
> other than __null or 0 as it should...

The problem is that some internal Linux kernel header defines NULL if
it is not defined, and defines it as (void*)0. Maybe they fix it some
day;

#define NULL 0

would already help a lot.

Regards,
Martin



More information about the Gcc-bugs mailing list