[Spice-devel] [PATCH] Fix macro for checking spice version numbers

Fabiano FidĂȘncio fidencio at redhat.com
Mon Oct 27 09:42:17 PDT 2014


From: "Daniel P. Berrange" <berrange at redhat.com>

As it is for now, the micro number is never checked.
---
 gtk/spice-version.h.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/spice-version.h.in b/gtk/spice-version.h.in
index fbef265..4276a23 100644
--- a/gtk/spice-version.h.in
+++ b/gtk/spice-version.h.in
@@ -62,7 +62,7 @@
  */
 #define SPICE_GTK_CHECK_VERSION(major, minor, micro)                    \
         (SPICE_GTK_MAJOR_VERSION > (major) ||                           \
-         (SPICE_GTK_MAJOR_VERSION == (major) && SPICE_GTK_MINOR_VERSION >= (minor)) || \
+         (SPICE_GTK_MAJOR_VERSION == (major) && SPICE_GTK_MINOR_VERSION > (minor)) || \
          (SPICE_GTK_MAJOR_VERSION == (major) && SPICE_GTK_MINOR_VERSION == (minor) && \
           SPICE_GTK_MICRO_VERSION >= (micro)))
 
-- 
2.1.0



More information about the Spice-devel mailing list