diff options
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r-- | src/tclsqlite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c index 854bbb0f0..4c6c5fc31 100644 --- a/src/tclsqlite.c +++ b/src/tclsqlite.c @@ -12,7 +12,7 @@ ** A TCL Interface to SQLite. Append this file to sqlite3.c and ** compile the whole thing to build a TCL-enabled version of SQLite. ** -** $Id: tclsqlite.c,v 1.240 2009/03/27 12:32:55 drh Exp $ +** $Id: tclsqlite.c,v 1.241 2009/03/27 12:44:35 drh Exp $ */ #include "tcl.h" #include <errno.h> @@ -575,7 +575,7 @@ static void DbRollbackHandler(void *clientData){ } } -#ifdef SQLITE_TEST +#if defined(SQLITE_TEST) && defined(SQLITE_ENABLE_UNLOCK_NOTIFY) static void setTestUnlockNotifyVars(Tcl_Interp *interp, int iArg, int nArg){ char zBuf[64]; sprintf(zBuf, "%d", iArg); @@ -584,7 +584,7 @@ static void setTestUnlockNotifyVars(Tcl_Interp *interp, int iArg, int nArg){ Tcl_SetVar(interp, "sqlite_unlock_notify_argcount", zBuf, TCL_GLOBAL_ONLY); } #else - #define setTestUnlockNotifyVars(x,y,z) +# define setTestUnlockNotifyVars(x,y,z) #endif #ifdef SQLITE_ENABLE_UNLOCK_NOTIFY |