diff options
author | Levi Gruspe <mail.levig@gmail.com> | 2022-09-17 22:45:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-17 10:45:46 -0400 |
commit | 17f6553f94c44b68666ac44fb7c0713b707457cc (patch) | |
tree | 385a5c982183d641ca8060c85d000937d3153c8c /sqlite3_opt_math_functions.go | |
parent | こんにちわ is wrong Japanse. The correct word is こんにちは (diff) | |
download | golite-17f6553f94c44b68666ac44fb7c0713b707457cc.tar.gz golite-17f6553f94c44b68666ac44fb7c0713b707457cc.tar.xz |
Add support for sqlite_math_functions tag (#1059)
Add support for SQLITE_ENABLE_MATH_FUNCTIONS compile-time option via the sqlite_math_functions build tag.
Co-authored-by: Dominik Kraus <dominik.kraus@nktek.de>
Diffstat (limited to 'sqlite3_opt_math_functions.go')
-rw-r--r-- | sqlite3_opt_math_functions.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sqlite3_opt_math_functions.go b/sqlite3_opt_math_functions.go new file mode 100644 index 0000000..7cd68d3 --- /dev/null +++ b/sqlite3_opt_math_functions.go @@ -0,0 +1,14 @@ +// Copyright (C) 2022 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_math_functions + +package sqlite3 + +/* +#cgo CFLAGS: -DSQLITE_ENABLE_MATH_FUNCTIONS +#cgo LDFLAGS: -lm +*/ +import "C" |