diff options
author | drh <> | 2023-12-28 21:02:08 +0000 |
---|---|---|
committer | drh <> | 2023-12-28 21:02:08 +0000 |
commit | 2aae3a95a97e38d82ec89d8b63ff5a9255b12225 (patch) | |
tree | 3b9515e8d321319ee95f13b826a145c9486e3b66 /src/sqliteInt.h | |
parent | 751c4e21526a8d04a45bd5780d54951779211fb0 (diff) | |
download | sqlite-2aae3a95a97e38d82ec89d8b63ff5a9255b12225.tar.gz sqlite-2aae3a95a97e38d82ec89d8b63ff5a9255b12225.zip |
Enable SQLITE_DIRECT_OVERFLOW_READ unless it is specifically disabled using
the -DSQLITE_DIRECT_OVERFLOW_READ=0 compile-time option.
FossilOrigin-Name: 630604a4e604bfb36c31602917bfa8d42c10c82966d0819932bf8f827b9158b8
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index a21425a14..75ac749c0 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -329,6 +329,19 @@ #endif /* +** Enable SQLITE_DIRECT_OVERFLOW_READ, unless the build explicitly +** disables it using -DSQLITE_DIRECT_OVERFLOW_READ=0 +*/ +#if defined(SQLITE_DIRECT_OVERFLOW_READ) && SQLITE_DIRECT_OVERFLOW_READ+1==1 + /* Disable if -DSQLITE_DIRECT_OVERFLOW_READ=0 */ +# undef SQLITE_DIRECT_OVERFLOW_READ +#else + /* In all other cases, enable */ +# define SQLITE_DIRECT_OVERFLOW_READ 1 +#endif + + +/* ** The SQLITE_THREADSAFE macro must be defined as 0, 1, or 2. ** 0 means mutexes are permanently disable and the library is never ** threadsafe. 1 means the library is serialized which is the highest |