diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test_intarray.h | 11 | ||||
-rw-r--r-- | src/test_multiplex.h | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/test_intarray.h b/src/test_intarray.h index e994367c0..691337d1a 100644 --- a/src/test_intarray.h +++ b/src/test_intarray.h @@ -77,6 +77,13 @@ #include "sqlite3.h" /* +** Make sure we can call this stuff from C++. +*/ +#ifdef __cplusplus +extern "C" { +#endif + +/* ** An sqlite3_intarray is an abstract type to stores an instance of ** an integer array. */ @@ -112,3 +119,7 @@ int sqlite3_intarray_bind( sqlite3_int64 *aElements, /* Content of the intarray */ void (*xFree)(void*) /* How to dispose of the intarray when done */ ); + +#ifdef __cplusplus +} /* End of the 'extern "C"' block */ +#endif diff --git a/src/test_multiplex.h b/src/test_multiplex.h index ec1ba9bb2..b7e1afea5 100644 --- a/src/test_multiplex.h +++ b/src/test_multiplex.h @@ -46,6 +46,10 @@ #define MULTIPLEX_CTRL_SET_CHUNK_SIZE 214015 #define MULTIPLEX_CTRL_SET_MAX_CHUNKS 214016 +#ifdef __cplusplus +extern "C" { +#endif + /* ** CAPI: Initialize the multiplex VFS shim - sqlite3_multiplex_initialize() ** @@ -88,4 +92,8 @@ extern int sqlite3_multiplex_initialize(const char *zOrigVfsName, int makeDefaul */ extern int sqlite3_multiplex_shutdown(void); +#ifdef __cplusplus +} /* End of the 'extern "C"' block */ +#endif + #endif |