Fossil

Check-in [931da0c3]
Login

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

Overview
Comment:Fix for _popen and _pclose with Visual C++ in the new export.c module.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 931da0c3e37913ea382b8ce7cca9057a6a20c741cb7ca0d04432c5ce5429923b
User & Date: wyoung 2019-03-17 10:44:32
Context
2019-03-18
10:38
Update the built-in SQLite to the latest 3.28.0 alpha version. check-in: 831e1af2 user: drh tags: trunk
2019-03-17
10:44
Fix for _popen and _pclose with Visual C++ in the new export.c module. check-in: 931da0c3 user: wyoung tags: trunk
07:01
Expanded the "Standalone server" section of www/server.wiki to add more examples. Also fixed a few grammar problems elsewhere in the doc. check-in: f153777f user: wyoung tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/export.c.

    35     35   */
    36     36   struct mark_t {
    37     37     char *name;       /* Name of the mark.  Also starts with ":" */
    38     38     int rid;          /* Corresponding object in the BLOB table */
    39     39     char uuid[65];    /* The GIT hash name for this object */
    40     40   };
    41     41   #endif
           42  +
           43  +#if defined(_WIN32) || defined(WIN32)
           44  +# undef popen
           45  +# define popen _popen
           46  +# undef pclose
           47  +# define pclose _pclose
           48  +#endif
    42     49   
    43     50   /*
    44     51   ** Output a "committer" record for the given user.
    45     52   ** NOTE: the given user name may be an email itself.
    46     53   */
    47     54   static void print_person(const char *zUser){
    48     55     static Stmt q;