mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-27 01:49:39 -04:00
Add FLATPAK_CHECK_VERSION macro
From: https://github.com/flatpak/flatpak/issues/304
This commit is contained in:
1 parent
6a8ffa725e
commit
bd7ab85102
1 file changed
+6
@@ -29,6 +29,12 @@
|
||||
#define FLATPAK_MINOR_VERSION (@FLATPAK_MINOR_VERSION@)
|
||||
#define FLATPAK_MICRO_VERSION (@FLATPAK_MICRO_VERSION@)
|
||||
|
||||
#define FLATPAK_CHECK_VERSION(major,minor,micro) \
|
||||
(FLATPAK_MAJOR_VERSION > (major) || \
|
||||
(FLATPAK_MAJOR_VERSION == (major) && FLATPAK_MINOR_VERSION > (minor)) || \
|
||||
(FLATPAK_MAJOR_VERSION == (major) && FLATPAK_MINOR_VERSION == (minor) && \
|
||||
FLATPAK_MICRO_VERSION >= (micro)))
|
||||
|
||||
#ifndef FLATPAK_EXTERN
|
||||
#define FLATPAK_EXTERN extern
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user