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

Marc-André Lureau mlureau at redhat.com
Mon Oct 27 09:52:04 PDT 2014


ack

----- Mail original -----
> 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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list