/ Check-in [797a1479]
Login

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

Overview
Comment:When compiling with MSVC, use the _msize function.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental-pcache
Files: files | file ages | folders
SHA1: 797a147934743a565c6f1f9dd4d41574690b4c2b
User & Date: mistachkin 2011-11-09 17:01:40
Context
2011-11-10
02:24
Use sqlite3MallocSize() to get the actual size of the memory allocation used for lookaside cache and increase the size of the cache to use the full allocation. check-in: 0e53ecad user: drh tags: experimental-pcache
2011-11-09
17:01
When compiling with MSVC, use the _msize function. check-in: 797a1479 user: mistachkin tags: experimental-pcache
16:12
Minor changes needed to restore full branch test coverage. check-in: bc10a753 user: drh tags: experimental-pcache
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Makefile.msc.

    45     45   
    46     46   # C Compile and options for use in building executables that
    47     47   # will run on the target platform.  (BCC and TCC are usually the
    48     48   # same unless your are cross-compiling.)
    49     49   #
    50     50   TCC = cl.exe -W3 -DSQLITE_OS_WIN=1 -I. -I$(TOP)\src -fp:precise
    51     51   
           52  +# We always have the _msize function available when using MSVC.
           53  +TCC = $(TCC) -DHAVE_MALLOC_USABLE_SIZE -Dmalloc_usable_size=_msize
           54  +
    52     55   # The mksqlite3c.tcl and mksqlite3h.tcl scripts will pull in 
    53     56   # any extension header files by default.  For non-amalgamation
    54     57   # builds, we need to make sure the compiler can find these.
    55     58   #
    56     59   !IF $(USE_AMALGAMATION)==0
    57     60   TCC = $(TCC) -I$(TOP)\ext\fts3
    58     61   TCC = $(TCC) -I$(TOP)\ext\rtree