diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 02:06:51 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 02:06:51 +0000 |
commit | 3a49803cc38cd15a86247ab696c065f0c17e86ac (patch) | |
tree | d5f70457d8b3dc906d1194a106e25f7a6e60c118 /chrome/common/sqlite_utils.cc | |
parent | 49372be2bd8f891dda8a92bd2c87dce42e33f592 (diff) | |
download | chromium_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/common/sqlite_utils.cc')
-rw-r--r-- | chrome/common/sqlite_utils.cc | 8 |
1 files changed, 8 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 |