[libgda/LIBGDA_4.2] Corrected compilation issues
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] Corrected compilation issues
- Date: Mon, 30 May 2011 19:55:03 +0000 (UTC)
commit 66ee44165f31d7e17fb7b4139dc85a40be163c61
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon May 30 21:53:41 2011 +0200
Corrected compilation issues
libgda/sqlite/virtual/gda-vprovider-data-model.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/libgda/sqlite/virtual/gda-vprovider-data-model.c b/libgda/sqlite/virtual/gda-vprovider-data-model.c
index d37d479..95ffb9a 100644
--- a/libgda/sqlite/virtual/gda-vprovider-data-model.c
+++ b/libgda/sqlite/virtual/gda-vprovider-data-model.c
@@ -692,19 +692,19 @@ virtualColumn (sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int i)
}
#if GLIB_CHECK_VERSION (2,22,0)
-#define rowid_equal g_int64_equal
-#define rowid_hash g_int64_hash
+#define rowid_equal_func g_int64_equal
+#define rowid_hash_func g_int64_hash
#else
/* taken from GLib to ensure compatibility with older GLibe versions */
static
gboolean
-rowid_equal (gconstpointer v1, gconstpointer v2)
+rowid_equal_func (gconstpointer v1, gconstpointer v2)
{
return *((const gint64*) v1) == *((const gint64*) v2);
}
static guint
-rowid_hash (gconstpointer v)
+rowid_hash_func (gconstpointer v)
{
return (guint) *(const gint64*) v;
}
@@ -721,7 +721,8 @@ virtualRowid (sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid)
*pRowid = gda_data_model_iter_get_row (cursor->iter);
if (! vtable->rowid_hash || (vtable->rowid_hash_model == vtable->td->real_model)) {
if (! vtable->rowid_hash) {
- vtable->rowid_hash = g_hash_table_new_full (rowid_hash, rowid_equal,
+ vtable->rowid_hash = g_hash_table_new_full (rowid_hash_func,
+ rowid_equal_func,
g_free,
(GDestroyNotify) g_object_unref);
vtable->rowid_hash_model = vtable->td->real_model;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]