Hi All, I don't know whether this list is a right place to post code contributions for SQLite. Is it?
As a quick try I'd like to suggest a small change to shell.c file to eliminate several warnings from Microsoft compiler when compiling with W4: Index: shell.c =================================================================== RCS file: /sqlite/sqlite/src/shell.c,v retrieving revision 1.134 diff -c -r1.134 shell.c *** shell.c 6 Mar 2006 20:55:46 -0000 1.134 --- shell.c 17 Mar 2006 17:59:08 -0000 *************** *** 37,42 **** --- 37,48 ---- # include <Folders.h> #endif + #ifdef _WIN32 + # include <io.h> + # define access _access + # define isatty _isatty + #endif + #if defined(HAVE_READLINE) && HAVE_READLINE==1 # include <readline/readline.h> # include <readline/history.h> *************** *** 48,57 **** # define stifle_history(X) #endif - /* Make sure isatty() has a prototype. - */ - extern int isatty(); - /* ** The following is the open SQLite database. We make a pointer ** to this database a static variable so that it can be accessed --- 54,59 ---- -- Alexei Alexandrov