[gcompris/gcomprixogoo] Fix sqlite-less build



commit 098ed797f8402a15731612aee90431b77eb6d4a6
Author: Aleksey Lim <alsroot member fsf org>
Date:   Wed May 26 04:33:58 2010 +0000

    Fix sqlite-less build

 src/gcompris/gcompris_db.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcompris/gcompris_db.c b/src/gcompris/gcompris_db.c
index 2b4e99c..1f00e89 100644
--- a/src/gcompris/gcompris_db.c
+++ b/src/gcompris/gcompris_db.c
@@ -133,7 +133,7 @@ static sqlite3 *gcompris_db=NULL;
        UPDATE list_users_in_groups SET group_id=(SELECT wholegroup_id FROM class WHERE class_id=new.class_id) WHERE user_id=new.user_id; \
      END;"
 
-
+#ifdef USE_SQLITE
 /* Return the user version of the database
  * or -1 if failed. The user version is an sqlite
  * specific information stored in the pragma
@@ -389,6 +389,7 @@ gint _gc_boards_count()
   sqlite3_free_table(result);
   return count;
 }
+#endif // USE_SQLITE
 
 gboolean gc_db_init(gboolean disable_database_)
 {



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