I have a preprocessor constant (SUPPORT_PNG_IM AGE) with 3 states, to control the compilation:
---------
#undef SUPPORT_PNG_IMA GE
#define SUPPORT_PNG_IMA GE
#define SUPPORT_PNG_IMA GE ONLY
---------
With the 1st & 3rd line the following line works
---------
#if SUPPORT_PNG_IMA GE == ONLY
---------
but with the 2nd, compiler throws:
---------
fatal error C1017: invalid integer constant expression
---------
how can I handle this?
thanks
---------
#undef SUPPORT_PNG_IMA GE
#define SUPPORT_PNG_IMA GE
#define SUPPORT_PNG_IMA GE ONLY
---------
With the 1st & 3rd line the following line works
---------
#if SUPPORT_PNG_IMA GE == ONLY
---------
but with the 2nd, compiler throws:
---------
fatal error C1017: invalid integer constant expression
---------
how can I handle this?
thanks
Comment