aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sqlite3_other.go1
-rw-r--r--sqlite3_windows.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/sqlite3_other.go b/sqlite3_other.go
index 6f6d275..e8673ac 100644
--- a/sqlite3_other.go
+++ b/sqlite3_other.go
@@ -5,5 +5,6 @@ package sqlite3
/*
#cgo CFLAGS: -I.
#cgo linux LDFLAGS: -ldl
+#cgo CFLAGS: -DSQLITE_ENABLE_RTREE
*/
import "C"
diff --git a/sqlite3_windows.go b/sqlite3_windows.go
index 7193dfb..7a52826 100644
--- a/sqlite3_windows.go
+++ b/sqlite3_windows.go
@@ -3,5 +3,6 @@ package sqlite3
/*
#cgo CFLAGS: -I. -fno-stack-check -fno-stack-protector -mno-stack-arg-probe
#cgo LDFLAGS: -lmingwex -lmingw32
+#cgo CFLAGS: -DSQLITE_ENABLE_RTREE
*/
import "C"