Kouhei Sutou 2018-11-09 10:49:19 +0900 (Fri, 09 Nov 2018) Revision: 558da970b6ba963ff661899601d596cf3622bd1a https://github.com/groonga/groonga/commit/558da970b6ba963ff661899601d596cf3622bd1a Message: Add GRN_VERSION_OR_LATER Modified files: include/groonga/version.h.in Modified: include/groonga/version.h.in (+8 -0) =================================================================== --- include/groonga/version.h.in 2018-11-09 10:47:33 +0900 (f080b2e32) +++ include/groonga/version.h.in 2018-11-09 10:49:19 +0900 (a92924ff7) @@ -22,3 +22,11 @@ #define GRN_VERSION_MAJOR @GRN_VERSION_MAJOR@ #define GRN_VERSION_MINOR @GRN_VERSION_MINOR@ #define GRN_VERSION_MICRO @GRN_VERSION_MICRO@ + +#define GRN_VERSION_OR_LATER(major, minor, micro) \ + (GRN_VERSION_MAJOR > (major) || \ + (GRN_VERSION_MAJOR == (major) && \ + GRN_VERSION_MINOR > (minor)) || \ + (GRN_VERSION_MAJOR == (major) && \ + GRN_VERSION_MINOR == (minor) && \ + GRN_VERSION_MICRO >= (micro))) -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181109/f039bfa5/attachment.html>