Version check macro doesn't work in a precompiler #if test anymore
Before v0.14 this was valid
In 0.14 this use of the macro is no longer valid.
Workaround: Add code like this to the application to define a EXIV2_TEST_VERSION macro which can be used in a preprocessor test with all versions of exiv2, instead of EXIV2_CHECK_VERSION:#include <exiv2/types.hpp>
- ifndef EXIV2_TEST_VERSION
- define EXIV2_TEST_VERSION(major,minor,patch) \
( EXIV2_VERSION >= EXIV2_MAKE_VERSION(major,minor,patch) )
- define EXIV2_TEST_VERSION(major,minor,patch) (false)