Add conditional 'extern "C"' block to sqlite3async.h. Ticket #3866. (CVS 6662)
FossilOrigin-Name: e4d1b117c90dca341bfa74291c7dfc2afca38cc6
diff --git a/ext/async/sqlite3async.h b/ext/async/sqlite3async.h
index 100dfff..143cdc7 100644
--- a/ext/async/sqlite3async.h
+++ b/ext/async/sqlite3async.h
@@ -2,6 +2,13 @@
#ifndef __SQLITEASYNC_H_
#define __SQLITEASYNC_H_ 1
+/*
+** Make sure we can call this stuff from C++.
+*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define SQLITEASYNC_VFSNAME "sqlite3async"
/*
@@ -209,5 +216,8 @@
#define SQLITEASYNC_HALT_NOW 1 /* Halt as soon as possible */
#define SQLITEASYNC_HALT_IDLE 2 /* Halt when write-queue is empty */
+#ifdef __cplusplus
+} /* End of the 'extern "C"' block */
+#endif
#endif /* ifndef __SQLITEASYNC_H_ */