Commit 23c1dd1
authored
libsql-sqlite3: Skip SQLITE_USER_AUTHENTICATION #warning on MSVC (#2241)
The SQLITE_USER_AUTHENTICATION deprecation #warning (added upstream in
SQLite 3.46.0) is a hard error under MSVC's default traditional C
preprocessor (error C1021: invalid preprocessor command 'warning'),
breaking Windows builds. SQLite3MultipleCiphers force-enables
SQLITE_USER_AUTHENTICATION by default, so the directive is active even
though build.rs passes -DSQLITE_USER_AUTHENTICATION=OFF.
Guard the directive with !defined(_MSC_VER) so the deprecation notice is
kept for GCC/Clang and skipped on MSVC. This is purely a compile-time
diagnostic; the extension's runtime behavior is unchanged on all
platforms.
Upstream removed this extension entirely in SQLite 3.48.0 (commit
bc4df60), so this local patch becomes moot once the bundled SQLite is
updated past 3.47.0. The patch is applied in libsql-sqlite3/src and
mirrored into both regenerated bundled amalgamations.3 files changed
Lines changed: 24 additions & 3 deletions
File tree
- libsql-ffi/bundled
- SQLite3MultipleCiphers/src
- src
- libsql-sqlite3/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18394 | 18394 | | |
18395 | 18395 | | |
18396 | 18396 | | |
18397 | | - | |
| 18397 | + | |
| 18398 | + | |
| 18399 | + | |
| 18400 | + | |
| 18401 | + | |
| 18402 | + | |
| 18403 | + | |
| 18404 | + | |
18398 | 18405 | | |
18399 | 18406 | | |
18400 | 18407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18394 | 18394 | | |
18395 | 18395 | | |
18396 | 18396 | | |
18397 | | - | |
| 18397 | + | |
| 18398 | + | |
| 18399 | + | |
| 18400 | + | |
| 18401 | + | |
| 18402 | + | |
| 18403 | + | |
| 18404 | + | |
18398 | 18405 | | |
18399 | 18406 | | |
18400 | 18407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1615 | 1615 | | |
1616 | 1616 | | |
1617 | 1617 | | |
1618 | | - | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
1619 | 1626 | | |
1620 | 1627 | | |
1621 | 1628 | | |
| |||
0 commit comments