c - Preprocessor #define LIBVER {'1','5'} check -
i receiving libraries include files, version described below:
#define msif_dmx_libver {'1','5'} //lib version
problem want make conditional compilation based on lib version. example there more enums in version 1.5 1.4, use.
when tried with:
#if (msif_dmx_libver == {'1','5'})
compilation failed following error message:
error: token "{" not valid in preprocessor expressions
is possible make preprocessor condition on case? don't want modify every header file 3rd party.
Comments
Post a Comment