/ Check-in [0a3579d9]
Login

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

Overview
Comment:Provide an #ifdef in shell.c to work around issues when cross-compiling from Ubuntu to windows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0a3579d9b9d2a60bb85a9811bc7936edb88debae
User & Date: drh 2014-02-28 19:37:45
Context
2014-02-28
20:47
In the command-line shell add the (undocumented and unsupported) ".eqp" command and -eqp command-line option, to cause EXPLAIN QUERY PLAN to be run on each SQL statement as it is evaluated. Intended use is for analysis of the query planner. check-in: e6ecf733 user: drh tags: trunk
19:37
Provide an #ifdef in shell.c to work around issues when cross-compiling from Ubuntu to windows. check-in: 0a3579d9 user: drh tags: trunk
2014-02-27
15:11
A better way of handling the USE_SYSTEM_SQLITE #define in shell.c. check-in: 51ce713c user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

    61     61   # define write_history(X)
    62     62   # define stifle_history(X)
    63     63   #endif
    64     64   
    65     65   #if defined(_WIN32) || defined(WIN32)
    66     66   # include <io.h>
    67     67   #define isatty(h) _isatty(h)
    68         -#define access(f,m) _access((f),(m))
           68  +#ifndef access
           69  +# define access(f,m) _access((f),(m))
           70  +#endif
    69     71   #undef popen
    70     72   #define popen _popen
    71     73   #undef pclose
    72     74   #define pclose _pclose
    73     75   #else
    74     76   /* Make sure isatty() has a prototype.
    75     77   */