1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

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
This commit is contained in:
shane
2008-09-01 22:15:18 +00:00
parent a8b34b5630
commit 171fa295c3
3 changed files with 15 additions and 8 deletions

View File

@@ -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 */
@@ -62,6 +62,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.