diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2017-03-01 16:44:54 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2017-03-01 16:44:54 +0900 |
commit | a7b54c9ddb146e4a81c0dd60616cb0f20e91e221 (patch) | |
tree | 7f004474eacb25f58d1d4bdb7e5143fd7c3e0686 | |
parent | Merge pull request #382 from mattn/sqlite-amalgamation-3170000 (diff) | |
download | golite-a7b54c9ddb146e4a81c0dd60616cb0f20e91e221.tar.gz golite-a7b54c9ddb146e4a81c0dd60616cb0f20e91e221.tar.xz |
workaround for a compiler
Apple LLVM version 7.0.2 (clang-700.1.81)
Close #386
-rw-r--r-- | sqlite3-binding.c | 3 | ||||
-rw-r--r-- | sqlite3.go | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sqlite3-binding.c b/sqlite3-binding.c index 8cd0774..825e7d8 100644 --- a/sqlite3-binding.c +++ b/sqlite3-binding.c @@ -1,4 +1,5 @@ #ifndef USE_LIBSQLITE3 +#define SQLITE_DISABLE_INTRINSIC 1 /****************************************************************************** ** This file is an amalgamation of many separate C source files from SQLite ** version 3.17.0. By combining all the individual C code files into this @@ -201404,4 +201405,4 @@ static int sqlite3Fts5VocabInit(Fts5Global *pGlobal, sqlite3 *db){ #else // USE_LIBSQLITE3 // If users really want to link against the system sqlite3 we // need to make this file a noop. - #endif
\ No newline at end of file + #endif @@ -10,6 +10,7 @@ package sqlite3 #cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE #cgo CFLAGS: -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4_UNICODE61 #cgo CFLAGS: -DSQLITE_TRACE_SIZE_LIMIT=15 +#cgo CFLAGS: -DSQLITE_DISABLE_INTRINSIC #cgo CFLAGS: -Wno-deprecated-declarations #ifndef USE_LIBSQLITE3 #include <sqlite3-binding.h> |