From 4429eb8bbb70b747db61481ad1515ed7e4d544f3 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 20 Jul 2011 18:02:19 -0700 Subject: [PATCH] more sqlite cleanup Change-Id: Iacd48d581bcd4d60e34b1152ffe16ecf06077846 --- misc/sqlite/sqlite.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/misc/sqlite/sqlite.go b/misc/sqlite/sqlite.go index f39ad4ce5..13a32c2af 100644 --- a/misc/sqlite/sqlite.go +++ b/misc/sqlite/sqlite.go @@ -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 -#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"