From a7b54c9ddb146e4a81c0dd60616cb0f20e91e221 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 1 Mar 2017 16:44:54 +0900 Subject: [PATCH] workaround for a compiler Apple LLVM version 7.0.2 (clang-700.1.81) Close #386 --- sqlite3-binding.c | 3 ++- sqlite3.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 diff --git a/sqlite3.go b/sqlite3.go index cbe3964..d6937ae 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -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