/ Check-in [c63fb170]
Login

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

Overview
Comment:Add some missing #ifdefs for building without zlib.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | sqlar-shell-support
Files: files | file ages | folders
SHA3-256: c63fb1700c0f67d90857b1f3859c203880d0939f356a64d8ae7cafc814ea72bf
User & Date: mistachkin 2018-01-05 16:03:52
Context
2018-01-05
16:05
In the Makefile for MSVC, only attempt to link against Tcl when it is needed. Also, only compile 'zipfile.c' when use of zlib is enabled. check-in: a33ad33c user: mistachkin tags: sqlar-shell-support
16:03
Add some missing #ifdefs for building without zlib. check-in: c63fb170 user: mistachkin tags: sqlar-shell-support
14:55
Fix compiler warnings. check-in: 364ac333 user: drh tags: sqlar-shell-support
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test1.c.

  6956   6956     extern int sqlite3_regexp_init(sqlite3*,char**,const sqlite3_api_routines*);
  6957   6957     extern int sqlite3_remember_init(sqlite3*,char**,const sqlite3_api_routines*);
  6958   6958     extern int sqlite3_series_init(sqlite3*,char**,const sqlite3_api_routines*);
  6959   6959     extern int sqlite3_spellfix_init(sqlite3*,char**,const sqlite3_api_routines*);
  6960   6960     extern int sqlite3_totype_init(sqlite3*,char**,const sqlite3_api_routines*);
  6961   6961     extern int sqlite3_wholenumber_init(sqlite3*,char**,const sqlite3_api_routines*);
  6962   6962     extern int sqlite3_unionvtab_init(sqlite3*,char**,const sqlite3_api_routines*);
         6963  +#ifdef SQLITE_HAVE_ZLIB
  6963   6964     extern int sqlite3_zipfile_init(sqlite3*,char**,const sqlite3_api_routines*);
         6965  +#endif
  6964   6966     static const struct {
  6965   6967       const char *zExtName;
  6966   6968       int (*pInit)(sqlite3*,char**,const sqlite3_api_routines*);
  6967   6969     } aExtension[] = {
  6968   6970       { "amatch",                sqlite3_amatch_init               },
  6969   6971       { "carray",                sqlite3_carray_init               },
  6970   6972       { "closure",               sqlite3_closure_init              },
................................................................................
  6978   6980       { "regexp",                sqlite3_regexp_init               },
  6979   6981       { "remember",              sqlite3_remember_init             },
  6980   6982       { "series",                sqlite3_series_init               },
  6981   6983       { "spellfix",              sqlite3_spellfix_init             },
  6982   6984       { "totype",                sqlite3_totype_init               },
  6983   6985       { "unionvtab",             sqlite3_unionvtab_init            },
  6984   6986       { "wholenumber",           sqlite3_wholenumber_init          },
         6987  +#ifdef SQLITE_HAVE_ZLIB
  6985   6988       { "zipfile",               sqlite3_zipfile_init              },
         6989  +#endif
  6986   6990     };
  6987   6991     sqlite3 *db;
  6988   6992     const char *zName;
  6989   6993     int i, j, rc;
  6990   6994     char *zErrMsg = 0;
  6991   6995     if( objc<3 ){
  6992   6996       Tcl_WrongNumArgs(interp, 1, objv, "DB NAME ...");