diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-12-12 20:31:50 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-12-12 20:31:50 +0000 |
commit | 19b6a9616464a20a6824e255a296c708f882e55b (patch) | |
tree | 1ccf20239e9bd782623a7e2b624cfafd0701b7be /librsvg-features.h.in | |
parent | 8383def1fdf5f1f687d14bfbadcd3629c6a60a10 (diff) | |
download | librsvg-19b6a9616464a20a6824e255a296c708f882e55b.tar.gz |
Add version check macro. Bug #564226.
* librsvg-features.h.in: Add version check macro. Bug #564226.
svn path=/trunk/; revision=1192
Diffstat (limited to 'librsvg-features.h.in')
-rw-r--r-- | librsvg-features.h.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/librsvg-features.h.in b/librsvg-features.h.in index c028162c..7deb6ac1 100644 --- a/librsvg-features.h.in +++ b/librsvg-features.h.in @@ -6,6 +6,11 @@ #define LIBRSVG_MICRO_VERSION (@LIBRSVG_MICRO_VERSION@) #define LIBRSVG_VERSION "@PACKAGE_VERSION@" +#define LIBRSVG_CHECK_VERSION(major,minor,micro) \ + (LIBRSVG_MAJOR_VERSION > (major) || \ + (LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION > (minor)) || \ + (LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION == (minor) && LIBRSVG_MICRO_VERSION >= (micro))) + extern const unsigned int librsvg_major_version, librsvg_minor_version, librsvg_micro_version; extern const char *librsvg_version; |