Skip to content

Commit d3e28fd

Browse files
committed
libsql-sqlite3: Disable SEH on Windows
We don't support structured error handling (SEH) on Windows because of the WAL virtualization so let's just disable it for good in the source code.
1 parent 778a13a commit d3e28fd

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

libsql-sqlite3/src/sqliteInt.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,17 @@
324324
# endif
325325
#endif
326326

327-
/*
328-
** Enable SQLITE_USE_SEH by default on MSVC builds. Only omit
329-
** SEH support if the -DSQLITE_OMIT_SEH option is given.
330-
*/
331-
#if defined(_MSC_VER) && !defined(SQLITE_OMIT_SEH)
332-
# define SQLITE_USE_SEH 1
333-
#else
334-
# undef SQLITE_USE_SEH
335-
#endif
327+
328+
// SEH is not supported in libSQL.
329+
// /*
330+
// ** Enable SQLITE_USE_SEH by default on MSVC builds. Only omit
331+
// ** SEH support if the -DSQLITE_OMIT_SEH option is given.
332+
// */
333+
// #if defined(_MSC_VER) && !defined(SQLITE_OMIT_SEH)
334+
// # define SQLITE_USE_SEH 1
335+
// #else
336+
// # undef SQLITE_USE_SEH
337+
// #endif
336338

337339
/*
338340
** Enable SQLITE_DIRECT_OVERFLOW_READ, unless the build explicitly

0 commit comments

Comments
 (0)