Skip to content

Commit

Permalink
Merge pull request #534 from basvanbeek/master
Browse files Browse the repository at this point in the history
only enable pread/pwrite for linux. fixes #533 and fixes #532
  • Loading branch information
mattn authored Feb 17, 2018
2 parents 788c147 + bd9ec08 commit 2a20b89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlite3.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ package sqlite3

/*
#cgo CFLAGS: -std=gnu99
#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE=1 -DHAVE_USLEEP=1 -DHAVE_PREAD64=1 -DHAVE_PWRITE64=1
#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE=1 -DHAVE_USLEEP=1
#cgo linux CFLAGS: -DHAVE_PREAD64=1 -DHAVE_PWRITE64=1
#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
Expand Down

0 comments on commit 2a20b89

Please sign in to comment.