Mail Archives: djgpp-workers/2000/07/20/16:39:58
> Date: Thu, 20 Jul 2000 02:42:48 -0400 (EDT)
> From: Eli Zaretskii <eliz AT delorie DOT com>
> To: mrs AT windriver DOT com
> > From: Mike Stump <mrs AT windriver DOT com>
> > Date: Wed, 19 Jul 2000 14:38:04 -0700 (PDT)
> >
> I'm not sure what GCC's notion of NULL are you talking about.
gcc only has one definition of NULL. After you read it, it was my
hope you would understand it. If you don't, you might trye
comp.lang.c.
> We cannot use __null in C headers unconditionally,
Ok, I already know that. You must misunderstand my point if you think
I said that.
> Use of __null conditioned on __cplusplus is questionable,
At this point, I will just say trust me, do it. You can either ignore
me, or listen to me, your choice.
> since libc.a is not compiled with that definition of NULL. Am I
> missing something?
Yes.
> > Sprinkle in #undef NULL if you get redefinition errors.
>
> We did use #undef to solve the immediate problem, but it looked like a
> brute-force and potentially dangerous (for C++ programs) solution. I
> wonder if there's a better one.
No.
- Raw text -