aboutsummaryrefslogtreecommitdiffstats
path: root/sqlite3ext.h
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite3ext.h')
-rw-r--r--sqlite3ext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sqlite3ext.h b/sqlite3ext.h
index 928bb3bad9dd..ecf93f62f6cd 100644
--- a/sqlite3ext.h
+++ b/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_ */