1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-30 02:55:19 +01:00

Compile fixes for mac for old sqlite3 header.

This commit is contained in:
John Maguire 2010-03-21 16:11:26 +00:00
parent 416670671f
commit a7596959eb
2 changed files with 3 additions and 3 deletions

View File

@ -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"));

View File

@ -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);
};