This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC headers and DJGPP port
> I don't know what your copy of stdio.h looks like, however, it
> should certainly test whether NULL is defined before defining it.
It doesn't. It shouldn't have to. ANSI says that stdio.h provides
NULL. I have a philosophical problem with anyone saying "it should
certainly test it" because it means that, at the whim of the gcc team,
we'd need to add yet another test to our standard headers because yet
another symbol was absconded by the gcc headers. Where does it end?
Do we have to wrap every single #define in all the system headers?
Will we have to wrap the function prototypes also?
Of course, a working fixincludes might circumvent the technical
problems.