aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_opt_icu.go
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite3_opt_icu.go')
-rw-r--r--sqlite3_opt_icu.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/sqlite3_opt_icu.go b/sqlite3_opt_icu.go
new file mode 100644
index 0000000..9bc0c61
--- /dev/null
+++ b/sqlite3_opt_icu.go
@@ -0,0 +1,15 @@
+// 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 sqlite_icu icu
+
+package sqlite3
+
+/*
+#cgo LDFLAGS: -licuuc -licui18n
+#cgo CFLAGS: -DSQLITE_ENABLE_ICU
+#cgo darwin CFLAGS: -I/usr/local/opt/icu4c/include
+#cgo darwin LDFLAGS: -L/usr/local/opt/icu4c/lib
+*/
+import "C"