aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-07-09 12:36:30 +0000
committerdrh <drh@noemail.net>2013-07-09 12:36:30 +0000
commit1f10c286188947d222cbaf3589245f19d812cf4a (patch)
tree40f537918824fb7dcf64c87d7299d6e0b684215b /src
parent5e128b235bf6667206935f4d51fa050f5b0b5e19 (diff)
parent049d487e2e1f8d68503cc6e16a68f78493f8257e (diff)
downloadsqlite-1f10c286188947d222cbaf3589245f19d812cf4a.tar.gz
sqlite-1f10c286188947d222cbaf3589245f19d812cf4a.zip
Modify several extensions to use the new exported function naming.
Fix some shared library compilation issues. FossilOrigin-Name: 1e39f85077f1f2b96c3a656c5b6334bafb005908
Diffstat (limited to 'src')
-rw-r--r--src/sqlite3ext.h3
-rw-r--r--src/test_schema.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/src/sqlite3ext.h b/src/sqlite3ext.h
index 928bb3bad..ecf93f62f 100644
--- a/src/sqlite3ext.h
+++ b/src/sqlite3ext.h
@@ -474,11 +474,14 @@ struct sqlite3_api_routines {
** extension */
# define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api=0;
# define SQLITE_EXTENSION_INIT2(v) sqlite3_api=v;
+# define SQLITE_EXTENSION_INIT3 \
+ extern const sqlite3_api_routines *sqlite3_api;
#else
/* This case when the file is being statically linked into the
** application */
# define SQLITE_EXTENSION_INIT1 /*no-op*/
# define SQLITE_EXTENSION_INIT2(v) (void)v; /* unused parameter */
+# define SQLITE_EXTENSION_INIT3 /*no-op*/
#endif
#endif /* _SQLITE3EXT_H_ */
diff --git a/src/test_schema.c b/src/test_schema.c
index 126444676..00a9f4dd9 100644
--- a/src/test_schema.c
+++ b/src/test_schema.c
@@ -344,7 +344,10 @@ int Sqlitetestschema_Init(Tcl_Interp *interp){
/*
** Extension load function.
*/
-int sqlite3_extension_init(
+#ifdef _WIN32
+__declspec(dllexport)
+#endif
+int sqlite3_schema_init(
sqlite3 *db,
char **pzErrMsg,
const sqlite3_api_routines *pApi