diff --git a/BUILD.gn b/BUILD.gn index e77a95d898436820a8f1be63b6fee4d9032cf3db..74b92d995ad0bbf544c930619732968a5bcafee2 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -112,7 +112,6 @@ ohos_shared_library("sqlite") { "SQLITE_DIRECT_OVERFLOW_READ", "SQLITE_HAS_CODEC", "SQLITE_EXPORT_SYMBOLS", - "SQLITE_API=SQLITE_EXPORT", "SQLITE_SHARED_BLOCK_OPTIMIZATION", "SQLITE_CODEC_ATTACH_CHANGED", "SQLITE_ENABLE_DROPTABLE_CALLBACK", diff --git a/patch/0007-DatabaseDebugTool.patch b/patch/0007-DatabaseDebugTool.patch index 3e2ac23c49e586dd045c49457d27978289b32aa0..53c4d95c8d3df4d3072a78d396cf4fd07bcc0f01 100644 --- a/patch/0007-DatabaseDebugTool.patch +++ b/patch/0007-DatabaseDebugTool.patch @@ -19,17 +19,3 @@ index 7fb190e..07fe381 100644 /* Do an initial pass through the command-line argument to locate ** the name of the database file, the name of the initialization file, -diff --git a/src/sqlite3.c b/src/sqlite3.c -index 7fb290f..0024163 100644 ---- a/src/sqlite3.c -+++ b/src/sqlite3.c -@@ -20,6 +20,9 @@ - ** The content in this amalgamation comes from Fossil check-in - ** f1e31fd9961ac82535a5d0702b127d84de8c. - */ -+#ifndef SQLITE_EXPORT -+#define SQLITE_EXPORT -+#endif - #define SQLITE_CORE 1 - #define SQLITE_AMALGAMATION 1 - #ifndef SQLITE_PRIVATE