Index: include/fossil-scm/fossil-ext_regexp.h ================================================================== --- include/fossil-scm/fossil-ext_regexp.h +++ include/fossil-scm/fossil-ext_regexp.h @@ -63,11 +63,15 @@ #ifdef __cplusplus extern "C" { #endif +#ifndef SQLITE_CORE #include "sqlite3ext.h" +#else +#include "sqlite3.h" +#endif /*(this file is derived from sqlite3 regexp.c; I wanted to expose the engine to also be used directly*/ typedef struct ReCompiled ReCompiled; Index: include/fossil-scm/fossil-vtbl_fossil_settings.h ================================================================== --- include/fossil-scm/fossil-vtbl_fossil_settings.h +++ include/fossil-scm/fossil-vtbl_fossil_settings.h @@ -19,13 +19,18 @@ #ifdef __cplusplus extern "C" { #endif +#ifndef SQLITE_CORE #include "sqlite3ext.h" +#else +#include "sqlite3.h" +#endif +/*registers some sqlite3 extensions for handling versioned settings */ int sqlite3_vtbl_fossilsettings_init ( sqlite3* db, char** pzErrMsg, const struct sqlite3_api_routines* pApi ); Index: src/Makefile.in ================================================================== --- src/Makefile.in +++ src/Makefile.in @@ -1,9 +1,9 @@ all: include ../subdir-inc.make #$(error $(TOP_SRCDIR)) -CPPFLAGS += -DBUILD_libfossil +CPPFLAGS += -DBUILD_libfossil -DSQLITE_CORE #CPPFLAGS += -I$(TOP_INCDIR) #CPPFLAGS += -I$(TOP_SRCDIR)/include #CPPFLAGS += -I$(TOP_SRCDIR)/src# workaround for in-tree sqlite3.h EXTRA_LIBS := -lz EXTRA_LIBS += $(LDFLAGS_MODULE_LOADER) Index: src/sqlite3.c ================================================================== --- src/sqlite3.c +++ src/sqlite3.c @@ -231,11 +231,11 @@ ** [sqlite3_libversion_number()], [sqlite3_sourceid()], ** [sqlite_version()] and [sqlite_source_id()]. */ #define SQLITE_VERSION "3.8.7" #define SQLITE_VERSION_NUMBER 3008007 -#define SQLITE_SOURCE_ID "2014-10-01 13:17:34 07c89940c49a5dca3205a4b6fa8290f23bcb6e10" +#define SQLITE_SOURCE_ID "2014-10-17 11:24:17 e4ab094f8afce0817f4074e823fabe59fc29ebb4" /* ** CAPI3REF: Run-Time Library Version Numbers ** KEYWORDS: sqlite3_version, sqlite3_sourceid ** @@ -2791,13 +2791,13 @@ ** [SQLITE_OK] is returned. Otherwise an [error code] is returned.)^ ^The ** [sqlite3_errmsg()] or [sqlite3_errmsg16()] routines can be used to obtain ** an English language description of the error following a failure of any ** of the sqlite3_open() routines. ** -** ^The default encoding for the database will be UTF-8 if -** sqlite3_open() or sqlite3_open_v2() is called and -** UTF-16 in the native byte order if sqlite3_open16() is used. +** ^The default encoding will be UTF-8 for databases created using +** sqlite3_open() or sqlite3_open_v2(). ^The default encoding for databases +** created using sqlite3_open16() will be UTF-16 in the native byte order. ** ** Whether or not an error occurs when it is opened, resources ** associated with the [database connection] handle should be released by ** passing it to [sqlite3_close()] when it is no longer required. ** @@ -2881,17 +2881,18 @@ ** ^SQLite uses the path component of the URI as the name of the disk file ** which contains the database. ^If the path begins with a '/' character, ** then it is interpreted as an absolute path. ^If the path does not begin ** with a '/' (meaning that the authority section is omitted from the URI) ** then the path is interpreted as a relative path. -** ^On windows, the first component of an absolute path -** is a drive specification (e.g. "C:"). +** ^(On windows, the first component of an absolute path +** is a drive specification (e.g. "C:").)^ ** ** [[core URI query parameters]] ** The query component of a URI may contain parameters that are interpreted ** either by SQLite itself, or by a [VFS | custom VFS implementation]. -** SQLite interprets the following three query parameters: +** SQLite and its built-in [VFSes] interpret the +** following query parameters: ** **