librsvg r1192 - trunk
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: librsvg r1192 - trunk
- Date: Fri, 12 Dec 2008 20:31:51 +0000 (UTC)
Author: chpe
Date: Fri Dec 12 20:31:50 2008
New Revision: 1192
URL: http://svn.gnome.org/viewvc/librsvg?rev=1192&view=rev
Log:
* librsvg-features.h.in: Add version check macro. Bug #564226.
Modified:
trunk/ChangeLog
trunk/librsvg-features.h.in
Modified: trunk/librsvg-features.h.in
==============================================================================
--- trunk/librsvg-features.h.in (original)
+++ trunk/librsvg-features.h.in Fri Dec 12 20:31:50 2008
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]