diff options
author | mistachkin <mistachkin@noemail.net> | 2016-07-28 17:11:20 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2016-07-28 17:11:20 +0000 |
commit | 7617e4a8a4564689a839cf116dae0012b4753a65 (patch) | |
tree | 6d3e3d005be92b9cfdf2d2c96d31cb29335dd361 /src/test_async.c | |
parent | f27a80cf185c97e66a5808e2634d41fe30942fed (diff) | |
download | sqlite-7617e4a8a4564689a839cf116dae0012b4753a65.tar.gz sqlite-7617e4a8a4564689a839cf116dae0012b4753a65.zip |
Make sure the SQLITE_TCLAPI macro is always defined.
FossilOrigin-Name: f2f1323cc4d2ad2d6794dbfae8d50b747213e85d
Diffstat (limited to 'src/test_async.c')
-rw-r--r-- | src/test_async.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/test_async.c b/src/test_async.c index 8389e75db..c32c74c66 100644 --- a/src/test_async.c +++ b/src/test_async.c @@ -19,6 +19,9 @@ # include "sqlite_tcl.h" #else # include "tcl.h" +# ifndef SQLITE_TCLAPI +# define SQLITE_TCLAPI +# endif #endif #ifdef SQLITE_ENABLE_ASYNCIO @@ -40,7 +43,7 @@ TCL_DECLARE_MUTEX(testasync_g_writerMutex); /* ** sqlite3async_initialize PARENT-VFS ISDEFAULT */ -static int testAsyncInit( +static int SQLITE_TCLAPI testAsyncInit( void * clientData, Tcl_Interp *interp, int objc, @@ -73,7 +76,7 @@ static int testAsyncInit( /* ** sqlite3async_shutdown */ -static int testAsyncShutdown( +static int SQLITE_TCLAPI testAsyncShutdown( void * clientData, Tcl_Interp *interp, int objc, @@ -97,7 +100,7 @@ static Tcl_ThreadCreateType tclWriterThread(ClientData pIsStarted){ ** ** Start a new writer thread. */ -static int testAsyncStart( +static int SQLITE_TCLAPI testAsyncStart( void * clientData, Tcl_Interp *interp, int objc, @@ -129,7 +132,7 @@ static int testAsyncStart( ** If the current writer thread is set to run forever then this ** command would block forever. To prevent that, an error is returned. */ -static int testAsyncWait( +static int SQLITE_TCLAPI testAsyncWait( void * clientData, Tcl_Interp *interp, int objc, @@ -155,7 +158,7 @@ static int testAsyncWait( /* ** sqlite3async_control OPTION ?VALUE? */ -static int testAsyncControl( +static int SQLITE_TCLAPI testAsyncControl( void * clientData, Tcl_Interp *interp, int objc, |