diff options
author | mistachkin <mistachkin@noemail.net> | 2018-03-07 21:13:49 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2018-03-07 21:13:49 +0000 |
commit | 98cb7a489424aa1a8849de40f3d25a9d26675f53 (patch) | |
tree | f83fc9ab52a26b874c7d3f750d9f14e55bf2dd24 /test/sessionfuzz.c | |
parent | f94c1902b95bf9f4b963972e9e5090a3d537607e (diff) | |
download | sqlite-98cb7a489424aa1a8849de40f3d25a9d26675f53.tar.gz sqlite-98cb7a489424aa1a8849de40f3d25a9d26675f53.zip |
Enable compilation of 'sessionfuzz' tool using MSVC.
FossilOrigin-Name: c58de43b8f2723d659fc9820caf667e215fdfa9aa2d7337fc82ba5b6f8db2e4c
Diffstat (limited to 'test/sessionfuzz.c')
-rw-r--r-- | test/sessionfuzz.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/sessionfuzz.c b/test/sessionfuzz.c index 7a23b1234..0a97750b1 100644 --- a/test/sessionfuzz.c +++ b/test/sessionfuzz.c @@ -50,6 +50,14 @@ /* ** We will import the entire SQLite source file to make compiling easier */ +#ifdef SQLITE_DEBUG +#undef SQLITE_DEBUG +#endif + +#ifdef SQLITE_THREADSAFE +#undef SQLITE_THREADSAFE +#endif + #define SQLITE_DEBUG 1 #define SQLITE_THREADSAFE 0 #define SQLITE_OMIT_LOAD_EXTENSION 0 @@ -802,7 +810,7 @@ static void readFile(const char *zName, void **ppData, int *pnData){ } nRead = fread(pBuf, 1, nIn, in); fclose(in); - if( nRead!=nIn ){ + if( nRead!=(size_t)nIn ){ fprintf(stderr, "Read only %d of %d bytes from %s\n", (int)nRead, (int)nIn, zName); exit(1); |