mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 05:38:05 +02:00
version.h: Add version check macro
Make it easier to check for a Weston version.
This commit is contained in:
parent
639fd86493
commit
d0a7282876
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue