diff options
author | drh <> | 2023-08-28 15:58:00 +0000 |
---|---|---|
committer | drh <> | 2023-08-28 15:58:00 +0000 |
commit | 57b1800773f58458fe65bbc7aee7810360d1723c (patch) | |
tree | 16780a7b1f144084a60b5ecdca245e2ccd76b5fe /src | |
parent | 25e7d8af753d8e7bc1ce0a4b4be5996f5347effb (diff) | |
parent | 95484726f607b332a46fa25fe8c46103141becb6 (diff) | |
download | sqlite-57b1800773f58458fe65bbc7aee7810360d1723c.tar.gz sqlite-57b1800773f58458fe65bbc7aee7810360d1723c.zip |
Add support for the -DSQLITE_EXTRA_AUTOEXT=name compile-time option.
[forum:/forumpost/00829394c74a670f|forum thread 00829394c74a670f].
FossilOrigin-Name: fe7365254d343ed03e11a4e9cad7f0e5d5182b9220c6fde6d30e434ebdaba2af
Diffstat (limited to 'src')
-rw-r--r-- | src/ctime.c | 3 | ||||
-rw-r--r-- | src/main.c | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ctime.c b/src/ctime.c index 368724168..03c89ff72 100644 --- a/src/ctime.c +++ b/src/ctime.c @@ -355,6 +355,9 @@ static const char * const sqlite3azCompileOpt[] = { #ifdef SQLITE_EXPLAIN_ESTIMATED_ROWS "EXPLAIN_ESTIMATED_ROWS", #endif +#ifdef SQLITE_EXTRA_AUTOEXT + "EXTRA_AUTOEXT=" CTIMEOPT_VAL(SQLITE_EXTRA_AUTOEXT), +#endif #ifdef SQLITE_EXTRA_IFNULLROW "EXTRA_IFNULLROW", #endif diff --git a/src/main.c b/src/main.c index cd0200890..b8f262261 100644 --- a/src/main.c +++ b/src/main.c @@ -47,7 +47,9 @@ int sqlite3Fts5Init(sqlite3*); #ifdef SQLITE_ENABLE_STMTVTAB int sqlite3StmtVtabInit(sqlite3*); #endif - +#ifdef SQLITE_EXTRA_AUTOEXT +int SQLITE_EXTRA_AUTOEXT(sqlite3*); +#endif /* ** An array of pointers to extension initializer functions for ** built-in extensions. @@ -81,6 +83,9 @@ static int (*const sqlite3BuiltinExtensions[])(sqlite3*) = { #ifdef SQLITE_ENABLE_BYTECODE_VTAB sqlite3VdbeBytecodeVtabInit, #endif +#ifdef SQLITE_EXTRA_AUTOEXT + SQLITE_EXTRA_AUTOEXT, +#endif }; #ifndef SQLITE_AMALGAMATION |