I would like to use the following preprocessor defines:
[3rd party header (cannot modify)]
#define SWCI_VERSION_MAJOR (unsigned char) 4
#define SWCI_VERSION_MINOR (unsigned char) 16
When they are compared in this way:
[my implementation]
#if SWCI_VERSION_MAJOR >= 4 && SWCI_VERSION_MINOR >= 16
Then I get:
fatal error C1017: invalid integer constant expression
I have noticed that if I define them without (unsigned char) the directive will be accepted, but I have no access to the defines so I would like to workaround the issue if possible.