diff options
| author | Lars Ingebrigtsen | 2021-12-10 02:09:16 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-12-10 02:09:16 +0100 |
| commit | 7a642efd07b5beda866838c6185cf8bb721c4ccc (patch) | |
| tree | fb93ff85083ae257d991d478f192b627b40bc781 | |
| parent | 249339b784dcaa5007e468e0ba5a633a76521882 (diff) | |
| download | emacs-7a642efd07b5beda866838c6185cf8bb721c4ccc.tar.gz emacs-7a642efd07b5beda866838c6185cf8bb721c4ccc.zip | |
Windows-def sqlite3_prepare_v2
| -rw-r--r-- | src/sqlite.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sqlite.c b/src/sqlite.c index 29cc2e593fe..329b1255157 100644 --- a/src/sqlite.c +++ b/src/sqlite.c | |||
| @@ -67,6 +67,9 @@ DEF_DLL_FN (SQLITE_API int, sqlite3_exec, | |||
| 67 | void *, char **)); | 67 | void *, char **)); |
| 68 | DEF_DLL_FN (SQLITE_API int, sqlite3_load_extension, | 68 | DEF_DLL_FN (SQLITE_API int, sqlite3_load_extension, |
| 69 | (sqlite3 *, const char *, const char *, char **)); | 69 | (sqlite3 *, const char *, const char *, char **)); |
| 70 | DEF_DLL_FN (SQLITE_API int, sqlite3_prepare_v2 | ||
| 71 | (sqlite3 *, const char *, int, sqlite3_stmt **, const char ** )); | ||
| 72 | ); | ||
| 70 | 73 | ||
| 71 | # undef sqlite3_finalize | 74 | # undef sqlite3_finalize |
| 72 | # undef sqlite3_close | 75 | # undef sqlite3_close |
| @@ -90,6 +93,7 @@ DEF_DLL_FN (SQLITE_API int, sqlite3_load_extension, | |||
| 90 | # undef sqlite3_column_name | 93 | # undef sqlite3_column_name |
| 91 | # undef sqlite3_exec | 94 | # undef sqlite3_exec |
| 92 | # undef sqlite3_load_extension | 95 | # undef sqlite3_load_extension |
| 96 | # undef sqlite3_prepare_v2 | ||
| 93 | 97 | ||
| 94 | # define sqlite3_finalize fn_sqlite3_finalize | 98 | # define sqlite3_finalize fn_sqlite3_finalize |
| 95 | # define sqlite3_close fn_sqlite3_close | 99 | # define sqlite3_close fn_sqlite3_close |
| @@ -113,6 +117,7 @@ DEF_DLL_FN (SQLITE_API int, sqlite3_load_extension, | |||
| 113 | # define sqlite3_column_name fn_sqlite3_column_name | 117 | # define sqlite3_column_name fn_sqlite3_column_name |
| 114 | # define sqlite3_exec fn_sqlite3_exec | 118 | # define sqlite3_exec fn_sqlite3_exec |
| 115 | # define sqlite3_load_extension fn_sqlite3_load_extension | 119 | # define sqlite3_load_extension fn_sqlite3_load_extension |
| 120 | # define sqlite3_prepare_v2 fn_sqlite3_prepare_v2 | ||
| 116 | 121 | ||
| 117 | static bool | 122 | static bool |
| 118 | load_dll_functions (HMODULE library) | 123 | load_dll_functions (HMODULE library) |
| @@ -139,6 +144,7 @@ load_dll_functions (HMODULE library) | |||
| 139 | LOAD_DLL_FN (library, sqlite3_column_name); | 144 | LOAD_DLL_FN (library, sqlite3_column_name); |
| 140 | LOAD_DLL_FN (library, sqlite3_exec); | 145 | LOAD_DLL_FN (library, sqlite3_exec); |
| 141 | LOAD_DLL_FN (library, sqlite3_load_extension); | 146 | LOAD_DLL_FN (library, sqlite3_load_extension); |
| 147 | LOAD_DLL_FN (library, sqlite3_prepare_v2); | ||
| 142 | return true; | 148 | return true; |
| 143 | } | 149 | } |
| 144 | 150 | ||