This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc compiler dependency generation
- From: John Love-Jensen <eljay at adobe dot com>
- To: "Shapiro, Naum" <naum dot shapiro at intel dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Mon, 27 Mar 2006 06:22:49 -0600
- Subject: Re: gcc compiler dependency generation
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