Hi, this is more of an Eclipse question but I can't find the answer looking through Eclipse forums or the CCS forums so I'm hoping to get an answer here.
I have code like this in dspPlatform.h:
#ifdef FOO
#define something
#endif
FOO is defined in a .h file called hwSupported.h.
The "#define something" code is greyed out, although it is compiled as I expect (if I add an error between the #ifdef and #endif I get a compile error).
dspPlatform.h does not specifically include hwSupported.h, but hwSupported.h is always listed before dspPlatform.h in lists of include files at the top of c files.
How can I tell Eclipse about this so that it will recognize that FOO is defined and display the file correctly (i.e. the "#define something" line is not greyed out).
I wondered whether this was related to the "Specify a preinclude file (--preinclude)" option available under Build options but can't find enough documentation about this. The post:
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/130177.aspx#466268
points to a section in a document which looks wrong.
Thanks for your help,
Annie