gcc compiler dependency generation
John Love-Jensen
eljay@adobe.com
Mon Mar 27 12:22:00 GMT 2006
Hi Naum,
Try this: modify your statement:
#if defined(NAME) && defined(XXX) && (NAME == XXX)
#include "include_file.h"
#endif
If you are wondering what is going on in your #if test, maybe this will
help, from the C preprocessor document:
"Identifiers that are not macros, are treated as zero."
So your test...
#if (NAME == XXX)
...looks like this if NAME and XXX are not defined, or one or the other or
both are defined to be 0...
#if (0 == 0)
HTH,
--Eljay
More information about the Gcc-help
mailing list