From a7596959eb6ade80d9cac09a501cc335a1b379fe Mon Sep 17 00:00:00 2001
From: John Maguire <john.maguire@gmail.com>
Date: Sun, 21 Mar 2010 16:11:26 +0000
Subject: [PATCH] Compile fixes for mac for old sqlite3 header.

---
 src/librarybackend.cpp | 4 ++--
 src/librarybackend.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/librarybackend.cpp b/src/librarybackend.cpp
index 63470abe7..ab2b4ba26 100644
--- a/src/librarybackend.cpp
+++ b/src/librarybackend.cpp
@@ -24,7 +24,7 @@ void (*LibraryBackend::_sqlite3_create_function) (
     void (*) (sqlite3_context*, int, sqlite3_value**),
     void (*) (sqlite3_context*)) = NULL;
 int (*LibraryBackend::_sqlite3_value_type) (sqlite3_value*) = NULL;
-sqlite3_int64 (*LibraryBackend::_sqlite3_value_int64) (sqlite3_value*) = NULL;
+sqlite_int64 (*LibraryBackend::_sqlite3_value_int64) (sqlite3_value*) = NULL;
 uchar* (*LibraryBackend::_sqlite3_value_text) (sqlite3_value*) = NULL;
 void (*LibraryBackend::_sqlite3_result_int64) (sqlite3_context*, int) = NULL;
 
@@ -46,7 +46,7 @@ bool LibraryBackend::StaticInit() {
       library.resolve("sqlite3_create_function"));
   _sqlite3_value_type = reinterpret_cast<int (*) (sqlite3_value*)>(
       library.resolve("sqlite3_value_type"));
-  _sqlite3_value_int64 = reinterpret_cast<sqlite3_int64 (*) (sqlite3_value*)>(
+  _sqlite3_value_int64 = reinterpret_cast<sqlite_int64 (*) (sqlite3_value*)>(
       library.resolve("sqlite3_value_int64"));
   _sqlite3_value_text = reinterpret_cast<uchar* (*) (sqlite3_value*)>(
       library.resolve("sqlite3_value_text"));
diff --git a/src/librarybackend.h b/src/librarybackend.h
index a5f568c25..9829d044b 100644
--- a/src/librarybackend.h
+++ b/src/librarybackend.h
@@ -126,7 +126,7 @@ class LibraryBackend : public QObject {
   // Sqlite3 functions. These will be loaded from the sqlite3 plugin.
   static Sqlite3CreateFunc _sqlite3_create_function;
   static int (*_sqlite3_value_type) (sqlite3_value*);
-  static sqlite3_int64 (*_sqlite3_value_int64) (sqlite3_value*);
+  static sqlite_int64 (*_sqlite3_value_int64) (sqlite3_value*);
   static uchar* (*_sqlite3_value_text) (sqlite3_value*);
   static void (*_sqlite3_result_int64) (sqlite3_context*, int);
 };