[PATCH] version.h: Add version check macro

Marc Chalain marc.chalain at gmail.com
Mon Sep 23 02:10:40 PDT 2013


sure this comment is wrong

prefer
+    Can be used like #if (WESTON_VERSION_AT_LEAST(1, 2, 0))

And in this case you can not build the feature for weston 1.3.0 while you
want to a version up of 1.3.0
I think you have to change completly your macro.
Look at your WESTON_VERSION macro this one can help you to write the good
WESTON_VERSION_AT_LEAST macro


2013/9/23 Bill Spitzak <spitzak at gmail.com>

> 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
>>
>>
> ______________________________**_________________
> wayland-devel mailing list
> wayland-devel at lists.**freedesktop.org<wayland-devel at lists.freedesktop.org>
> http://lists.freedesktop.org/**mailman/listinfo/wayland-devel<http://lists.freedesktop.org/mailman/listinfo/wayland-devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130923/200c3a09/attachment.html>


More information about the wayland-devel mailing list