[PATCH] version.h: Add version check macro
Bill Spitzak
spitzak at gmail.com
Mon Sep 23 00:44:42 PDT 2013
On 09/22/2013 10:26 PM, Pier Luigi Fiorini wrote:
> Make it easier to check for a Weston version.
> +/*
> + Can be used like #if (WESTON_VERSION >= WESTON_VERSION_AT_LEAST(1, 2, 0))
I think this comment is wrong.
> +*/
> +#define WESTON_VERSION_AT_LEAST(major, minor, micro) \
> + (WESTON_VERSION_MAJOR == (major) && \
> + WESTON_VERSION_MINOR == (minor) && \
> + WESTON_VERSION_MICRO >= (micro))
>
> #endif
>
More information about the wayland-devel
mailing list