mirror of https://github.com/perkeep/perkeep.git
fix sqlite linking
Change-Id: I540d45d787df0e18091c26a6961b2ac97e1fac4d
This commit is contained in:
parent
c91c3b1dab
commit
eb288d95f1
|
@ -5,6 +5,7 @@ package sqlite
|
|||
#cgo LDFLAGS: -ldl -lpthread
|
||||
|
||||
#include <stdlib.h>
|
||||
#define SKIP_SQLITE_VERSION 1
|
||||
#include "sqlite3.h"
|
||||
|
||||
static int my_bind_text(sqlite3_stmt *stmt, int n, char *p, int np) {
|
||||
|
|
|
@ -142,7 +142,9 @@ extern "C" {
|
|||
**
|
||||
** See also: [sqlite_version()] and [sqlite_source_id()].
|
||||
*/
|
||||
#ifndef SKIP_SQLITE_VERSION
|
||||
SQLITE_API const char sqlite3_version[] = SQLITE_VERSION;
|
||||
#endif
|
||||
SQLITE_API const char *sqlite3_libversion(void);
|
||||
SQLITE_API const char *sqlite3_sourceid(void);
|
||||
SQLITE_API int sqlite3_libversion_number(void);
|
||||
|
|
Loading…
Reference in New Issue