fix sqlite linking

Change-Id: I540d45d787df0e18091c26a6961b2ac97e1fac4d
This commit is contained in:
Brad Fitzpatrick 2011-07-17 14:44:33 -07:00
parent c91c3b1dab
commit eb288d95f1
2 changed files with 3 additions and 0 deletions

View File

@ -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) {

View File

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