/ Check-in [a0d92193]
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:Follow the previously established pattern for detecting preprocessor defines for specific flavors of Windows (for NT in this case).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a0d92193dd5ae97608748f354aa17eb188431546
User & Date: mistachkin 2011-12-08 03:51:12
Context
2011-12-08
19:50
In persistent WAL mode, truncate the WAL file to the size specified by the journal_size_limit pragma when disconnecting from the WAL. check-in: 9687b305 user: drh tags: trunk
03:51
Follow the previously established pattern for detecting preprocessor defines for specific flavors of Windows (for NT in this case). check-in: a0d92193 user: mistachkin tags: trunk
2011-12-07
01:55
Cherrypick the [7e5b56b1c6] fix for the sqlite3SelectDup() routine into trunk. check-in: 7fc53509 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os.h.

    61     61   # endif
    62     62   #else
    63     63   # ifndef SQLITE_OS_WIN
    64     64   #  define SQLITE_OS_WIN 0
    65     65   # endif
    66     66   #endif
    67     67   
           68  +/*
           69  +** Determine if we are dealing with Windows NT.
           70  +*/
           71  +#if defined(_WIN32_WINNT)
           72  +# define SQLITE_OS_WINNT 1
           73  +#else
           74  +# define SQLITE_OS_WINNT 0
           75  +#endif
           76  +
    68     77   /*
    69     78   ** Determine if we are dealing with WindowsCE - which has a much
    70     79   ** reduced API.
    71     80   */
    72     81   #if defined(_WIN32_WCE)
    73     82   # define SQLITE_OS_WINCE 1
    74     83   #else

Changes to src/os_win.c.

   177    177   ** testing and sandboxing.  The following array holds the names and pointers
   178    178   ** to all overrideable system calls.
   179    179   */
   180    180   #if !SQLITE_OS_WINCE
   181    181   #  define SQLITE_WIN32_HAS_ANSI
   182    182   #endif
   183    183   
   184         -#if SQLITE_OS_WINCE || defined(_WIN32_WINNT)
          184  +#if SQLITE_OS_WINCE || SQLITE_OS_WINNT
   185    185   #  define SQLITE_WIN32_HAS_WIDE
   186    186   #endif
   187    187   
   188    188   #ifndef SYSCALL
   189    189   #  define SYSCALL sqlite3_syscall_ptr
   190    190   #endif
   191    191