2 of 2 people found this helpful
I'm going to reply to my own suggestion here. :-) For people who want this, it is possible right now to create entries in your .mk file to do what I suggested. It's a little convoluted, but it does the trick:
# We use the terminology of semantic versioning: MAJOR.MINOR.PATCH.
MY_WICED_VER_MAJOR := $(basename $(basename $(WICED_SDK_VERSION)))
MY_WICED_VER_MINOR := $(subst .,,$(suffix $(basename $(WICED_SDK_VERSION))))
MY_WICED_VER_PATCH := $(subst .,,$(suffix $(WICED_SDK_VERSION)))
GLOBAL_DEFINES += MY_WICED_VER_MAJOR=$(MY_WICED_VER_MAJOR)
GLOBAL_DEFINES += MY_WICED_VER_MINOR=$(MY_WICED_VER_MINOR)
GLOBAL_DEFINES += MY_WICED_VER_PATCH=$(MY_WICED_VER_PATCH)
Then, in your header files you can say:
#if MY_WICED_VER_MAJOR >= 3 && MY_WICED_VER_MINOR >= 5
or some such. It's worked for us.