[evolution-data-server] EBookBackendFile: Fix a warning caused by Berkeley DB v5.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] EBookBackendFile: Fix a warning caused by Berkeley DB v5.
- Date: Sat, 3 Mar 2012 16:35:15 +0000 (UTC)
commit 0febec1f85c9dc0f90c88dd3e6093baca04bbc15
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Mar 3 11:30:27 2012 -0500
EBookBackendFile: Fix a warning caused by Berkeley DB v5.
Our preprocessor macro was only checking for:
#if DB_VERSION_MAJOR == 4 && DB_VERSION_MAJOR > 3
/* use new function signature */
#else
/* use old function signature */
#endif
addressbook/backends/file/e-book-backend-file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
index f5d3087..2550d76 100644
--- a/addressbook/backends/file/e-book-backend-file.c
+++ b/addressbook/backends/file/e-book-backend-file.c
@@ -1848,7 +1848,7 @@ e_book_backend_file_maybe_upgrade_db (EBookBackendFile *bf)
#endif
static void
-#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3
+#if (DB_VERSION_MAJOR > 4) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3)
file_errcall (const DB_ENV *env,
const gchar *buf1,
const gchar *buf2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]