mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 03:09:57 +01:00
Fix compile on mac for old sqlite3 header.
This commit is contained in:
parent
b1e1de709c
commit
2aeff9b5e2
@ -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<const uchar* (*) (sqlite3_value*)>(
|
||||
library.resolve("sqlite3_value_text"));
|
||||
_sqlite3_result_int64 = reinterpret_cast<void (*) (sqlite3_context*, sqlite3_int64)>(
|
||||
_sqlite3_result_int64 = reinterpret_cast<void (*) (sqlite3_context*, sqlite_int64)>(
|
||||
library.resolve("sqlite3_result_int64"));
|
||||
|
||||
if (_sqlite3_create_function &&
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user