more sqlite cleanup

Change-Id: Iacd48d581bcd4d60e34b1152ffe16ecf06077846
This commit is contained in:
Brad Fitzpatrick 2011-07-20 18:02:19 -07:00
parent 63e31b53a3
commit 4429eb8bbb
1 changed files with 10 additions and 10 deletions

View File

@ -1,19 +1,19 @@
package sqlite
/*
#cgo CFLAGS: -D_GNU_SOURCE -D_XOPEN_SOURCE=500
#cgo LDFLAGS: -lpthread
#cgo linux CFLAGS: -D_GNU_SOURCE -D_XOPEN_SOURCE=500
#cgo linux LDFLAGS: -lpthread
#include <stdlib.h>
#define SKIP_SQLITE_VERSION 1
#include "sqlite3.h"
#include "go-sqlite.h"
static int my_bind_text(sqlite3_stmt *stmt, int n, char *p, int np) {
return sqlite3_bind_text(stmt, n, p, np, SQLITE_TRANSIENT);
}
static int my_bind_blob(sqlite3_stmt *stmt, int n, void *p, int np) {
return sqlite3_bind_blob(stmt, n, p, np, SQLITE_TRANSIENT);
}
static int my_bind_text(sqlite3_stmt *stmt, int n, char *p, int np) {
return sqlite3_bind_text(stmt, n, p, np, SQLITE_TRANSIENT);
}
static int my_bind_blob(sqlite3_stmt *stmt, int n, void *p, int np) {
return sqlite3_bind_blob(stmt, n, p, np, SQLITE_TRANSIENT);
}
*/
import "C"