mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Enable compilation of 'sessionfuzz' tool using MSVC.
FossilOrigin-Name: c58de43b8f2723d659fc9820caf667e215fdfa9aa2d7337fc82ba5b6f8db2e4c
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user