<div dir="ltr"><div><div><div><div>sure this comment is wrong<br><br></div>prefer<br>+    Can be used like #if (WESTON_VERSION_AT_LEAST(1, 2, 0))<br><br></div>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<br>
</div>I think you have to change completly your macro.<br></div>Look at your WESTON_VERSION macro this one can help you to write the good  WESTON_VERSION_AT_LEAST macro<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/9/23 Bill Spitzak <span dir="ltr"><<a href="mailto:spitzak@gmail.com" target="_blank">spitzak@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 09/22/2013 10:26 PM, Pier Luigi Fiorini wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Make it easier to check for a Weston version.<br>
</blockquote>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+/*<br>
+    Can be used like #if (WESTON_VERSION >= WESTON_VERSION_AT_LEAST(1, 2, 0))<br>
</blockquote>
<br></div>
I think this comment is wrong.<div class="im HOEnZb"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+*/<br>
+#define WESTON_VERSION_AT_LEAST(major, minor, micro) \<br>
+        (WESTON_VERSION_MAJOR == (major) && \<br>
+         WESTON_VERSION_MINOR == (minor) && \<br>
+         WESTON_VERSION_MICRO >= (micro))<br>
<br>
  #endif<br>
<br>
</blockquote>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br></div>