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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -