diff options
author | mattn <mattn.jp@gmail.com> | 2015-08-20 09:54:08 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2015-08-20 09:54:08 +0900 |
commit | 8897bf145272af4dd0305518cfb725a5b6d0541c (patch) | |
tree | d5a07debf6557a8f3e0188822d94b6cefb6d2e4d | |
parent | Merge pull request #227 from gmarik/patch-1 (diff) | |
parent | added icu extension support (diff) | |
download | golite-8897bf145272af4dd0305518cfb725a5b6d0541c.tar.gz golite-8897bf145272af4dd0305518cfb725a5b6d0541c.tar.xz |
Merge pull request #228 from whiter4bbit/added_icu_support
added icu extension support
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | sqlite3_icu.go | 13 |
2 files changed, 17 insertions, 0 deletions
@@ -30,6 +30,10 @@ FAQ Use `go build --tags "libsqlite3 linux"` +* Want to build go-sqlite3 with icu extension. + + Use `go build --tags "icu"` + * Can't build go-sqlite3 on windows 64bit. > Probably, you are using go 1.0, go1.0 has a problem when it comes to compiling/linking on windows 64bit. diff --git a/sqlite3_icu.go b/sqlite3_icu.go new file mode 100644 index 0000000..4c5492b --- /dev/null +++ b/sqlite3_icu.go @@ -0,0 +1,13 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto <mattn.jp@gmail.com>. +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. +// +build icu + +package sqlite3 + +/* +#cgo LDFLAGS: -licuuc -licui18n +#cgo CFLAGS: -DSQLITE_ENABLE_ICU +*/ +import "C" |