aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authorshane <shane@noemail.net>2008-12-10 22:30:24 +0000
committershane <shane@noemail.net>2008-12-10 22:30:24 +0000
commit18e526c16b79cea8c2258ca70fbf7ec5c59be701 (patch)
treee595674847189e812a1e49b823625ea122f108ce /src/shell.c
parent0e4deca3e1fb7e753c0abbe05df78f6f577947ec (diff)
downloadsqlite-18e526c16b79cea8c2258ca70fbf7ec5c59be701.tar.gz
sqlite-18e526c16b79cea8c2258ca70fbf7ec5c59be701.zip
Work to remove harmless MSVC compiler warnings. (CVS 6013)
FossilOrigin-Name: 715dcd52c1372c62873cff5db97fdbdfce617808
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c
index 04fafcd79..bb0e5a524 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -12,8 +12,13 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
-** $Id: shell.c,v 1.193 2008/12/10 22:15:00 drh Exp $
+** $Id: shell.c,v 1.194 2008/12/10 22:30:25 shane Exp $
*/
+#if defined(_WIN32) || defined(WIN32)
+/* This needs to come before any includes for MSVC compiler */
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -48,6 +53,8 @@
#if defined(_WIN32) || defined(WIN32)
# include <io.h>
+#define isatty(h) _isatty(h)
+#define access(f,m) _access((f),(m))
#else
/* Make sure isatty() has a prototype.
*/