projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
639fd86
)
version.h: Add version check macro
author
Pier Luigi Fiorini
<pierluigi.fiorini@gmail.com>
Mon, 23 Sep 2013 05:26:03 +0000
(07:26 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 23 Sep 2013 17:42:19 +0000
(10:42 -0700)
Make it easier to check for a Weston version.
src/version.h.in
patch
|
blob
|
history
diff --git
a/src/version.h.in
b/src/version.h.in
index
f573328
..
79dba45
100644
(file)
--- a/
src/version.h.in
+++ b/
src/version.h.in
@@
-28,4
+28,10
@@
#define WESTON_VERSION_MICRO @WESTON_VERSION_MICRO@
#define WESTON_VERSION "@WESTON_VERSION@"
+/* 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))
+
#endif