diff options
author | mistachkin <mistachkin@noemail.net> | 2015-01-12 19:49:46 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2015-01-12 19:49:46 +0000 |
commit | 27b2f05335a0fff69656fe54c3904fd3ee670a6e (patch) | |
tree | 82840adb59f5528335befe9ebb50721c4b7dea03 /src/tclsqlite.c | |
parent | 9b97b8fed970afe1edcae8b49281c072b92c93d0 (diff) | |
download | sqlite-27b2f05335a0fff69656fe54c3904fd3ee670a6e.tar.gz sqlite-27b2f05335a0fff69656fe54c3904fd3ee670a6e.zip |
Harmless compiler warning fixes for 'testfixture' and the miscellaneous extensions when built with the MSVC makefile.
FossilOrigin-Name: 923fd66031ed1876bc63c3a038f0b8e33678184e
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r-- | src/tclsqlite.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c index 852f966a8..747017e32 100644 --- a/src/tclsqlite.c +++ b/src/tclsqlite.c @@ -25,6 +25,14 @@ ** hundreds of new commands used for testing ** SQLite. This option implies -DSQLITE_TCLMD5. */ + +/* +** If requested, include the SQLite compiler options file for MSVC. +*/ +#if defined(INCLUDE_MSVC_H) +#include "msvc.h" +#endif + #include "tcl.h" #include <errno.h> @@ -3102,7 +3110,7 @@ static int DbMain(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){ ** The EXTERN macros are required by TCL in order to work on windows. */ EXTERN int Sqlite3_Init(Tcl_Interp *interp){ - int rc = Tcl_InitStubs(interp, "8.4", 0)==0 ? TCL_ERROR : TCL_OK; + int rc = Tcl_InitStubs(interp, "8.4", 0) ? TCL_OK : TCL_ERROR; if( rc==TCL_OK ){ Tcl_CreateObjCommand(interp, "sqlite3", (Tcl_ObjCmdProc*)DbMain, 0, 0); #ifndef SQLITE_3_SUFFIX_ONLY |