aboutsummaryrefslogtreecommitdiff
path: root/ext/async/sqlite3async.h
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2009-05-21 04:42:19 +0000
committerdanielk1977 <danielk1977@noemail.net>2009-05-21 04:42:19 +0000
commit1ed93e9085ea02cd37db400f56ed52227e12ab79 (patch)
tree30f517c7e9b760a991248fa43fe52b719b0a4927 /ext/async/sqlite3async.h
parent748ce2111578d9c71ad8a2ba748930a51bcd6ecb (diff)
downloadsqlite-1ed93e9085ea02cd37db400f56ed52227e12ab79.tar.gz
sqlite-1ed93e9085ea02cd37db400f56ed52227e12ab79.zip
Add conditional 'extern "C"' block to sqlite3async.h. Ticket #3866. (CVS 6662)
FossilOrigin-Name: e4d1b117c90dca341bfa74291c7dfc2afca38cc6
Diffstat (limited to 'ext/async/sqlite3async.h')
-rw-r--r--ext/async/sqlite3async.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/async/sqlite3async.h b/ext/async/sqlite3async.h
index 100dfff0f..143cdc770 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 @@ int sqlite3async_control(int op, ...);
#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_ */