Specify by -D

This commit is contained in:
mattn 2014-10-22 13:31:54 +09:00
parent 1fbcb3cdc2
commit 00716954b7
3 changed files with 2 additions and 6 deletions

View File

@ -29,10 +29,6 @@ struct tm* _localtime32(const __time32_t *tm) {
# define SQLITE_OPEN_FULLMUTEX 0
#endif
#ifndef SQLITE_THREADSAFE
# define SQLITE_THREADSAFE
#endif
static int
_sqlite3_open_v2(const char *filename, sqlite3 **ppDb, int flags, const char *zVfs) {
#ifdef SQLITE_OPEN_URI

View File

@ -9,6 +9,6 @@ package sqlite3
/*
#cgo CFLAGS: -I.
#cgo linux LDFLAGS: -ldl
#cgo CFLAGS: -DSQLITE_ENABLE_RTREE
#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE
*/
import "C"

View File

@ -8,6 +8,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
#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE
*/
import "C"