aboutsummaryrefslogtreecommitdiff
path: root/sqlite3-binding.c
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2016-10-28 17:48:50 +0900
committerGitHub <noreply@github.com>2016-10-28 17:48:50 +0900
commitdbe15b0408002dafcad7f05741cb6788e33dcb22 (patch)
tree314e6564732acb050979e7e03799f29b9b9a85fb /sqlite3-binding.c
parentMerge pull request #345 from joeshaw/backup-finalizer-fix (diff)
parentupgrade: add ifdefines (diff)
downloadgolite-dbe15b0408002dafcad7f05741cb6788e33dcb22.tar.gz
golite-dbe15b0408002dafcad7f05741cb6788e33dcb22.tar.xz
Merge pull request #339 from brauner/2016-10-17/fix_libsqlite3_build
actually link to <sqlite3.h> when -tags libsqlite3
Diffstat (limited to 'sqlite3-binding.c')
-rw-r--r--sqlite3-binding.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sqlite3-binding.c b/sqlite3-binding.c
index 1f085b0..a8790de 100644
--- a/sqlite3-binding.c
+++ b/sqlite3-binding.c
@@ -17,6 +17,7 @@
** language. The code for the "sqlite3" command-line shell is also in a
** separate file. This file contains only code for the core SQLite library.
*/
+#ifndef USE_LIBSQLITE3
#define SQLITE_CORE 1
#define SQLITE_AMALGAMATION 1
#ifndef SQLITE_PRIVATE
@@ -197846,5 +197847,9 @@ static int sqlite3Fts5VocabInit(Fts5Global *pGlobal, sqlite3 *db){
#endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS5) */
+#else // USE_LIBSQLITE3
+// If users really want to link against the system sqlite3 we
+// need to make this file a noop.
+#endif
/************** End of fts5.c ************************************************/