version: Take nano version into account in GST_CHECK_VERSION()

If the nano is > 0 the current version should be handled the same as
micro + 1.
This commit is contained in:
Sebastian Dröge 2010-11-03 11:14:03 +01:00
parent f2f7842f6b
commit 0ff0e6a434

View file

@ -81,7 +81,9 @@ G_BEGIN_DECLS
(GST_VERSION_MAJOR > (major) || \
(GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR > (minor)) || \
(GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR == (minor) && \
GST_VERSION_MICRO >= (micro)))
GST_VERSION_MICRO >= (micro)) || \
(GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR == (minor) && \
GST_VERSION_MICRO + 1 == (micro) && GST_VERSION_NANO > 0))
G_END_DECLS