Relax the CLUTTER_CHECK_VERSION() macro check

The macro should check for a micro version greater or equal to the specified
micro version parameter. Fixes bug 477, patch by Neil Roberts.
This commit is contained in:
Emmanuele Bassi 2007-08-20 11:54:28 +00:00
parent 553932d68a
commit 7ab6f4e338
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-08-20 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-version.h.in: Fix CLUTTER_CHECK_VERSION()
macro to accept micro versions. (#477, Neil Roberts)
2007-08-19 Emmanuele Bassi <ebassi@openedhand.com>
Various timeline related changes.

View File

@ -91,7 +91,7 @@
#define CLUTTER_CHECK_VERSION(major,minor,micro) \
(CLUTTER_MAJOR_VERSION > (major) || \
(CLUTTER_MAJOR_VERSION == (major) && CLUTTER_MINOR_VERSION > (minor)) || \
(CLUTTER_MAJOR_VERSION == (major) && CLUTTER_MINOR_VERSION == (minor) && CLUTTER_MICRO_VERSION > (micro)))
(CLUTTER_MAJOR_VERSION == (major) && CLUTTER_MINOR_VERSION == (minor) && CLUTTER_MICRO_VERSION >= (micro)))
/**
* CLUTTER_FLAVOUR: