Oh FRACK!  I reversed the logic!  Ignore this patch series.

v2 coming

> -----Original Message-----
> From: Eoff, Ullysses A
> Sent: Friday, January 24, 2014 10:26 AM
> To: [email protected]
> Cc: Eoff, Ullysses A
> Subject: [PATCH 1/2] version: Fix WESTON_VERSION_AT_LEAST macro
> 
> From: "U. Artie Eoff" <[email protected]>
> 
> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=74023
> 
> Signed-off-by: U. Artie Eoff <[email protected]>
> ---
>  src/version.h.in | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/src/version.h.in b/src/version.h.in
> index 79dba45..b543963 100644
> --- a/src/version.h.in
> +++ b/src/version.h.in
> @@ -30,8 +30,9 @@
> 
>  /* Can be used like #if WESTON_VERSION_AT_LEAST(1, 2, 0) */
>  #define WESTON_VERSION_AT_LEAST(major, minor, micro) \
> -        (WESTON_VERSION_MAJOR == (major) && \
> -         WESTON_VERSION_MINOR == (minor) && \
> -         WESTON_VERSION_MICRO >= (micro))
> -
> +     ((WESTON_VERSION_MAJOR != major) ?            \
> +      (WESTON_VERSION_MAJOR < major) :            \
> +      ((WESTON_VERSION_MINOR != minor) ?          \
> +        (WESTON_VERSION_MINOR < minor) :          \
> +        (WESTON_VERSION_MICRO <= micro)))
>  #endif
> --
> 1.8.3.1

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to