/ Check-in [e0461f87]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add define for INVALID_FILE_ATTRIBUTES if it is not already defined, as some older Windows compilers do not define it. (CVS 5657)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e0461f8755daa9f57e056810de9ea347ff8dd986
User & Date: shane 2008-09-01 22:15:19
Context
2008-09-02
00:52
Continuing work on adding full support for the SQLITE_OMIT_WSD compile-time option. (CVS 5658) check-in: ef26ea5c user: drh tags: trunk
2008-09-01
22:15
Add define for INVALID_FILE_ATTRIBUTES if it is not already defined, as some older Windows compilers do not define it. (CVS 5657) check-in: e0461f87 user: shane tags: trunk
22:06
Added (_MSC_VER>1200) to SQLITE_DEPRECATED and SQLITE_EXPERIMENTAL defines since __declspec(deprecated) isn't supported by VC 6 or earlier. Ticket #3347. (CVS 5656) check-in: 4bcaed08 user: shane tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains code that is specific to windows.
    14     14   **
    15         -** $Id: os_win.c,v 1.132 2008/07/31 01:34:34 shane Exp $
           15  +** $Id: os_win.c,v 1.133 2008/09/01 22:15:19 shane Exp $
    16     16   */
    17     17   #include "sqliteInt.h"
    18     18   #if SQLITE_OS_WIN               /* This file is used for windows only */
    19     19   
    20     20   
    21     21   /*
    22     22   ** A Note About Memory Allocation:
................................................................................
    58     58   #endif
    59     59   
    60     60   /*
    61     61   ** Include code that is common to all os_*.c files
    62     62   */
    63     63   #include "os_common.h"
    64     64   
           65  +/*
           66  +** Some microsoft compilers lack this definition.
           67  +*/
           68  +#ifndef INVALID_FILE_ATTRIBUTES
           69  +# define INVALID_FILE_ATTRIBUTES ((DWORD)-1) 
           70  +#endif
           71  +
    65     72   /*
    66     73   ** Determine if we are dealing with WindowsCE - which has a much
    67     74   ** reduced API.
    68     75   */
    69     76   #if defined(SQLITE_OS_WINCE)
    70     77   # define AreFileApisANSI() 1
    71     78   #endif