aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshane <shane@noemail.net>2008-09-01 22:15:18 +0000
committershane <shane@noemail.net>2008-09-01 22:15:18 +0000
commit171fa295c3561dc839957478ec57ee4c135c566a (patch)
tree2bd614ad6e358b7b78cb7e050ae53446fff35a19 /src
parenta8b34b56306427c144a2a07acb0396076972850f (diff)
downloadsqlite-171fa295c3561dc839957478ec57ee4c135c566a.tar.gz
sqlite-171fa295c3561dc839957478ec57ee4c135c566a.zip
Add define for INVALID_FILE_ATTRIBUTES if it is not already defined, as some older Windows compilers do not define it. (CVS 5657)
FossilOrigin-Name: e0461f8755daa9f57e056810de9ea347ff8dd986
Diffstat (limited to 'src')
-rw-r--r--src/os_win.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/os_win.c b/src/os_win.c
index e0194d3bd..a143ffbf5 100644
--- a/src/os_win.c
+++ b/src/os_win.c
@@ -12,7 +12,7 @@
**
** This file contains code that is specific to windows.
**
-** $Id: os_win.c,v 1.132 2008/07/31 01:34:34 shane Exp $
+** $Id: os_win.c,v 1.133 2008/09/01 22:15:19 shane Exp $
*/
#include "sqliteInt.h"
#if SQLITE_OS_WIN /* This file is used for windows only */
@@ -63,6 +63,13 @@
#include "os_common.h"
/*
+** Some microsoft compilers lack this definition.
+*/
+#ifndef INVALID_FILE_ATTRIBUTES
+# define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
+#endif
+
+/*
** Determine if we are dealing with WindowsCE - which has a much
** reduced API.
*/