Re: gcc compiler dependency generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux