[evolution-couchdb] Use EDS_CHECK_VERSION, not only MINOR_VERSION, so that it works when we switch to 3.0



commit b8c8e9e64882ec9b4d792d4b1e1f890e44508c92
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Thu Feb 10 17:48:21 2011 +0100

    Use EDS_CHECK_VERSION, not only MINOR_VERSION, so that it works when we switch to 3.0

 plugins/couchdb-contacts-source.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/couchdb-contacts-source.c b/plugins/couchdb-contacts-source.c
index 3919102..7b9247a 100644
--- a/plugins/couchdb-contacts-source.c
+++ b/plugins/couchdb-contacts-source.c
@@ -38,7 +38,7 @@
 
 #define COUCHDB_BASE_URI "couchdb://"
 
-#if EDS_MINOR_VERSION < 27
+#if !EDS_CHECK_VERSION(2, 27, 0)
 /* Copied from e-d-s 2.27.x branch, since it doesn't exist in 2.26.x */
 
 ESourceGroup *
@@ -321,10 +321,10 @@ plugin_couchdb_contacts (EPlugin *epl, EConfigHookItemFactoryData *data)
 }
 
 gint
-#if EDS_MINOR_VERSION < 30
-e_plugin_lib_enable (EPluginLib *ep, gint enable)
-#else
+#if EDS_CHECK_VERSION(2, 30, 0)
 e_plugin_lib_enable (EPlugin *ep, gint enable)
+#else
+e_plugin_lib_enable (EPluginLib *ep, gint enable)
 #endif
 {
 	if (enable)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]