diff options
author | drh <> | 2023-10-09 14:05:21 +0000 |
---|---|---|
committer | drh <> | 2023-10-09 14:05:21 +0000 |
commit | 50da20d5b112b393683dcc2bff6b08d618383441 (patch) | |
tree | 35c1a08576e627f85cd03294c45da10fbadc7466 /src | |
parent | faef28e6bd654e5061561423cb1ece6ca84f1f1f (diff) | |
download | sqlite-50da20d5b112b393683dcc2bff6b08d618383441.tar.gz sqlite-50da20d5b112b393683dcc2bff6b08d618383441.zip |
Turn on SEH by default when building using MSVC.
FossilOrigin-Name: f57e8275cf1ab3ad8027044cda0893282d1c403a5aa9fabbb1c7de280597b5cd
Diffstat (limited to 'src')
-rw-r--r-- | src/ctime.c | 3 | ||||
-rw-r--r-- | src/sqliteInt.h | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/ctime.c b/src/ctime.c index 03c89ff72..cf761299f 100644 --- a/src/ctime.c +++ b/src/ctime.c @@ -639,6 +639,9 @@ static const char * const sqlite3azCompileOpt[] = { #ifdef SQLITE_OMIT_SCHEMA_VERSION_PRAGMAS "OMIT_SCHEMA_VERSION_PRAGMAS", #endif +#ifdef SQLITE_OMIT_SEH + "OMIT_SEH", +#endif #ifdef SQLITE_OMIT_SHARED_CACHE "OMIT_SHARED_CACHE", #endif diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 722197499..086570d66 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -319,6 +319,16 @@ #endif /* +** Enable SQLITE_USE_SEH by default on MSVC builds. Only omit +** SEH support if the -DSQLITE_OMIT_SEH option is given. +*/ +#if defined(_MSC_VER) && !defined(SQLITE_OMIT_SEH) +# define SQLITE_USE_SEH 1 +#else +# undef SQLITE_USE_SEH 0 +#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 |