Mail Archives: djgpp/1998/06/28/07:27:36
Hi,
Since GCC 2.8.1 (and perhaps a bit earlier) the authors have begun
using "#define NULL __null".. One problem arises:
If #include <stdio.h> occures anywhere throughout my code (and since
it is a very common library, it obviously does) I get the following
message telling me that stdio.h tried to redefine NULL (which was
previously defined as __null).. The only way I found around this is to
stick an "#ifndef ... #endif" block before "#define NULL 0" command in
<stdio.h>.. But what I'm wondering is, is this conflict suppose to
exist? Is something wrong with my configuration? What's going on? :)
Gili
- Raw text -