From 17f6553f94c44b68666ac44fb7c0713b707457cc Mon Sep 17 00:00:00 2001 From: Levi Gruspe Date: Sat, 17 Sep 2022 22:45:46 +0800 Subject: 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 --- sqlite3_opt_math_functions.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sqlite3_opt_math_functions.go (limited to 'sqlite3_opt_math_functions.go') 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 . +// +// 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" -- cgit v1.2.3