diff options
author | drh <drh@noemail.net> | 2020-12-07 17:15:32 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-12-07 17:15:32 +0000 |
commit | f6e904bd9243498889ae3e628aeef9f697c728c9 (patch) | |
tree | 3f3cc4437603e77f401151dac1083d9a2e8f7a69 /src/test_config.c | |
parent | aeb6bc56280c7961a0c5fe1a1e26a8e51bf8648d (diff) | |
download | sqlite-f6e904bd9243498889ae3e628aeef9f697c728c9.tar.gz sqlite-f6e904bd9243498889ae3e628aeef9f697c728c9.zip |
Begin adding new SQL functions that depend on -lm: ceil(), ceiling(),
floor(), ln(), log(), and log10() so far. More to follow.
FossilOrigin-Name: 4db5f2f7875f6df78630a7816fc018141a6eee2e295b44fc7627eb66d07881ea
Diffstat (limited to 'src/test_config.c')
-rw-r--r-- | src/test_config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test_config.c b/src/test_config.c index 362e92aa9..8c4fba71d 100644 --- a/src/test_config.c +++ b/src/test_config.c @@ -154,6 +154,12 @@ static void set_options(Tcl_Interp *interp){ Tcl_SetVar2(interp, "sqlite_options", "deserialize", "0", TCL_GLOBAL_ONLY); #endif +#ifdef SQLITE_ENABLE_MATH_FUNCTIONS + Tcl_SetVar2(interp, "sqlite_options", "mathlib", "1", TCL_GLOBAL_ONLY); +#else + Tcl_SetVar2(interp, "sqlite_options", "mathlib", "0", TCL_GLOBAL_ONLY); +#endif + #ifdef SQLITE_ENABLE_MEMSYS3 Tcl_SetVar2(interp, "sqlite_options", "mem3", "1", TCL_GLOBAL_ONLY); #else |