Fork github.com/mattn/go-sqlite3 with adjustment for go1.16.2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
559 B

  1. // Copyright (C) 2019 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
  2. //
  3. // Use of this source code is governed by an MIT-style
  4. // license that can be found in the LICENSE file.
  5. // +build sqlite_icu icu
  6. package sqlite3
  7. /*
  8. #cgo LDFLAGS: -licuuc -licui18n
  9. #cgo CFLAGS: -DSQLITE_ENABLE_ICU
  10. #cgo darwin,amd64 CFLAGS: -I/usr/local/opt/icu4c/include
  11. #cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/icu4c/lib
  12. #cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/icu4c/include
  13. #cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/icu4c/lib
  14. #cgo openbsd LDFLAGS: -lsqlite3
  15. */
  16. import "C"