summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-19 02:06:51 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-19 02:06:51 +0000
commit3a49803cc38cd15a86247ab696c065f0c17e86ac (patch)
treed5f70457d8b3dc906d1194a106e25f7a6e60c118 /chrome
parent49372be2bd8f891dda8a92bd2c87dce42e33f592 (diff)
downloadchromium_src-3a49803cc38cd15a86247ab696c065f0c17e86ac.zip
chromium_src-3a49803cc38cd15a86247ab696c065f0c17e86ac.tar.gz
chromium_src-3a49803cc38cd15a86247ab696c065f0c17e86ac.tar.bz2
Stub out sqlite3Preload when using system library.
We have a local patch to sqlite which adds a sqlite3Preload function. In the interim before this patch is upstreamed, we add this stub function to allow us to compile with a system sqlite. (Reported by fta) http://codereview.chromium.org/173033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/sqlite_utils.cc8
-rw-r--r--chrome/common/sqlite_utils.h6
2 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/sqlite_utils.cc b/chrome/common/sqlite_utils.cc
index 5c5e130..9695cfb 100644
--- a/chrome/common/sqlite_utils.cc
+++ b/chrome/common/sqlite_utils.cc
@@ -407,3 +407,11 @@ std::wstring SQLStatement::column_wstring(int index) {
column_wstring(index, &wstr);
return wstr;
}
+
+#if defined(USE_SYSTEM_SQLITE)
+// This function is a local change to sqlite3 which doesn't exist when one is
+// using the system sqlite library. Thus, we stub it out here.
+int sqlite3Preload(sqlite3* db) {
+ return 0;
+}
+#endif
diff --git a/chrome/common/sqlite_utils.h b/chrome/common/sqlite_utils.h
index b228030..5ea8655 100644
--- a/chrome/common/sqlite_utils.h
+++ b/chrome/common/sqlite_utils.h
@@ -373,4 +373,10 @@ inline bool DoesSqliteColumnExist(sqlite3* db,
// has one or more rows and false if the table is empty or doesn't exist.
bool DoesSqliteTableHaveRow(sqlite3* db, const char* table_name);
+#if defined(USE_SYSTEM_SQLITE)
+// This function is a local change to sqlite3 which doesn't exist when one is
+// using the system sqlite library. Thus, we stub it out here.
+int sqlite3Preload(sqlite3* db);
+#endif
+
#endif // CHROME_COMMON_SQLITEUTILS_H_