diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/loadext.c | 8 | ||||
-rw-r--r-- | src/test_autoext.c | 10 |
2 files changed, 13 insertions, 5 deletions
diff --git a/src/loadext.c b/src/loadext.c index 55289a6aa..fd3d10374 100644 --- a/src/loadext.c +++ b/src/loadext.c @@ -12,7 +12,6 @@ ** This file contains code used to dynamically load extensions into ** the SQLite library. */ -#ifndef SQLITE_OMIT_LOAD_EXTENSION #ifndef SQLITE_CORE #define SQLITE_CORE 1 /* Disable the API redefinition in sqlite3ext.h */ @@ -22,6 +21,8 @@ #include <string.h> #include <ctype.h> +#ifndef SQLITE_OMIT_LOAD_EXTENSION + /* ** Some API routines are omitted when various features are ** excluded from a build of SQLite. Substitute a NULL pointer @@ -500,6 +501,9 @@ void sqlite3_reset_auto_extension(void){ sqlite3_mutex_leave(mutex); } + +#ifndef SQLITE_OMIT_LOAD_EXTENSION + /* ** Load all automatic extensions. */ @@ -535,3 +539,5 @@ int sqlite3AutoLoadExtensions(sqlite3 *db){ } return rc; } + +#endif /* SQLITE_OMIT_LOADEXTENSION */ diff --git a/src/test_autoext.c b/src/test_autoext.c index d6ff10d61..6c5b98370 100644 --- a/src/test_autoext.c +++ b/src/test_autoext.c @@ -11,11 +11,12 @@ ************************************************************************* ** Test extension for testing the sqlite3_auto_extension() function. ** -** $Id: test_autoext.c,v 1.3 2008/03/19 16:08:54 drh Exp $ +** $Id: test_autoext.c,v 1.4 2008/03/19 23:52:35 mlcreech Exp $ */ #include "tcl.h" -#ifndef SQLITE_OMIT_LOAD_EXTENSION #include "sqlite3ext.h" + +#ifndef SQLITE_OMIT_LOAD_EXTENSION static SQLITE_EXTENSION_INIT1 /* @@ -128,6 +129,9 @@ static int autoExtBrokenObjCmd( return SQLITE_OK; } +#endif /* SQLITE_OMIT_LOAD_EXTENSION */ + + /* ** tclcmd: sqlite3_reset_auto_extension ** @@ -144,8 +148,6 @@ static int resetAutoExtObjCmd( } -#endif /* SQLITE_OMIT_LOAD_EXTENSION */ - /* ** This procedure registers the TCL procs defined in this file. */ |