Code Warrior 4.1.0.2 build 0646
Added a #define XYZ in a .h file to the "Prefix File" field, under
C/C++ Language in project settings.
However, codes between the:
#ifdef XYZ
// ... codes here
#endif
section in the .c source file are ignored.
If I added the #define XYZ to the .c source file, the compiler returns
an "Macro redefinition" error.
If I remove the #define XYZ from the .h file but only add #define XYZ
in the .c file, the #ifdef ... #endif section is working.
Bug?
Thanks
horace
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/