/ Check-in [a5805976]
Login

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

Overview
Comment:Fix compilation errors with some compilers that do not reference recent Windows SDK header files.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:a5805976f0e06ece2eeebd825f383a1ee88121fc
User & Date: mistachkin 2013-11-09 23:55:18
Context
2013-11-10
00:03
Fix typo in comment and remove superfluous blank line. No changes to code. check-in: 023233f1 user: mistachkin tags: trunk
2013-11-09
23:55
Fix compilation errors with some compilers that do not reference recent Windows SDK header files. check-in: a5805976 user: mistachkin tags: trunk
23:44
Fix memory type mismatch when compiled with MEMDEBUG. check-in: 2c32bd6d user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

    55     55   ** Make sure at least one set of Win32 APIs is available.
    56     56   */
    57     57   #if !defined(SQLITE_WIN32_HAS_ANSI) && !defined(SQLITE_WIN32_HAS_WIDE)
    58     58   #  error "At least one of SQLITE_WIN32_HAS_ANSI and SQLITE_WIN32_HAS_WIDE\
    59     59    must be defined."
    60     60   #endif
    61     61   
           62  +/*
           63  +** This constant should already be defined (in the "WinDef.h" SDK file).
           64  +*/
           65  +#ifndef MAX_PATH
           66  +#  define MAX_PATH                      (260)
           67  +#endif
           68  +
    62     69   /*
    63     70   ** Maximum pathname length (in chars) for Win32.  This should normally be
    64     71   ** MAX_PATH.
    65     72   */
           73  +
    66     74   #ifndef SQLITE_WIN32_MAX_PATH_CHARS
    67     75   #  define SQLITE_WIN32_MAX_PATH_CHARS   (MAX_PATH)
    68     76   #endif
    69     77   
           78  +/*
           79  +** This constant should already be defined (in the "WinNT.h" SDK file).
           80  +*/
           81  +#ifndef UNICODE_STRING_MAX_CHARS
           82  +#  define UNICODE_STRING_MAX_CHARS      (32767)
           83  +#endif
           84  +
    70     85   /*
    71     86   ** Maximum pathname length (in chars) for WinNT.  This should normally be
    72     87   ** UNICODE_STRING_MAX_CHARS.
    73     88   */
    74     89   #ifndef SQLITE_WINNT_MAX_PATH_CHARS
    75     90   #  define SQLITE_WINNT_MAX_PATH_CHARS   (UNICODE_STRING_MAX_CHARS)
    76     91   #endif