From 2aeff9b5e269707c54fcbddf828042d76c988045 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Mon, 22 Mar 2010 18:46:41 +0000 Subject: [PATCH] Fix compile on 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 6548606f6..278ca77d5 100644 --- a/src/librarybackend.cpp +++ b/src/librarybackend.cpp @@ -26,7 +26,7 @@ int (*LibraryBackend::_sqlite3_create_function) ( int (*LibraryBackend::_sqlite3_value_type) (sqlite3_value*) = NULL; sqlite_int64 (*LibraryBackend::_sqlite3_value_int64) (sqlite3_value*) = NULL; const uchar* (*LibraryBackend::_sqlite3_value_text) (sqlite3_value*) = NULL; -void (*LibraryBackend::_sqlite3_result_int64) (sqlite3_context*, sqlite3_int64) = NULL; +void (*LibraryBackend::_sqlite3_result_int64) (sqlite3_context*, sqlite_int64) = NULL; bool LibraryBackend::StaticInit() { @@ -60,7 +60,7 @@ bool LibraryBackend::StaticInit() { library.resolve("sqlite3_value_int64")); _sqlite3_value_text = reinterpret_cast( library.resolve("sqlite3_value_text")); - _sqlite3_result_int64 = reinterpret_cast( + _sqlite3_result_int64 = reinterpret_cast( library.resolve("sqlite3_result_int64")); if (_sqlite3_create_function && diff --git a/src/librarybackend.h b/src/librarybackend.h index 62d1f0c40..beb7b89fc 100644 --- a/src/librarybackend.h +++ b/src/librarybackend.h @@ -136,7 +136,7 @@ class LibraryBackend : public QObject { static int (*_sqlite3_value_type) (sqlite3_value*); static sqlite_int64 (*_sqlite3_value_int64) (sqlite3_value*); static const uchar* (*_sqlite3_value_text) (sqlite3_value*); - static void (*_sqlite3_result_int64) (sqlite3_context*, sqlite3_int64); + static void (*_sqlite3_result_int64) (sqlite3_context*, sqlite_int64); }; #endif // LIBRARYBACKEND_H