aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authorStéphane Graber <stgraber@ubuntu.com>2015-03-11 15:18:10 -0400
committerStéphane Graber <stgraber@ubuntu.com>2015-03-11 16:19:50 -0400
commit3d6c6f934500002267363041852b31a7a4e32159 (patch)
tree5bece53f178b9895211893f90caeacb3c9368587 /sqlite3.go
parentMerge pull request #178 from antoni/master (diff)
downloadgolite-3d6c6f934500002267363041852b31a7a4e32159.tar.gz
golite-3d6c6f934500002267363041852b31a7a4e32159.tar.xz
Rename sqlite3.{c,h} to sqlite3-binding.{c,h}
This fixes the problem where when building with gccgo, sqlite3.c is overwritten, leading to a build failure. An alternative would have been to move sqlite3*.{c,h} to a subdirectory, but that seems to confuse the linker a fair bit and would just swap one implementation-dependent issue for another. Closes #20 Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 5f94a96..4cdc4d5 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -9,7 +9,7 @@ package sqlite3
#cgo CFLAGS: -std=gnu99
#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE
#cgo CFLAGS: -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS
-#include <sqlite3.h>
+#include <sqlite3-binding.h>
#include <stdlib.h>
#include <string.h>