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


> 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


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