summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 21:10:15 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 21:10:15 +0000
commit9ac2450b9d23e67633c5420045a1ef2f317e5caf (patch)
treee467f86f625e33afb318778430abc1832c137ce3 /third_party
parentaed1b0de668037c45b39d4a41fbdbd6300a8b942 (diff)
downloadchromium_src-9ac2450b9d23e67633c5420045a1ef2f317e5caf.zip
chromium_src-9ac2450b9d23e67633c5420045a1ef2f317e5caf.tar.gz
chromium_src-9ac2450b9d23e67633c5420045a1ef2f317e5caf.tar.bz2
Add a stub implementation of sqlite3Preload when building with system sqlite.
This fixes a compile problem when using -Duse_system_sqlite=1 TEST=none BUG=22208 Review URL: http://codereview.chromium.org/3134039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57578 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/sqlite/sqlite3.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/sqlite/sqlite3.h b/third_party/sqlite/sqlite3.h
index 8e5618f..6c7c3b0 100644
--- a/third_party/sqlite/sqlite3.h
+++ b/third_party/sqlite/sqlite3.h
@@ -11,6 +11,10 @@
#if defined(USE_SYSTEM_SQLITE)
#include <sqlite3.h>
+
+// A no-op implementation of database preloading (not available
+// when using system sqlite).
+int sqlite3Preload(sqlite3 *db) { return SQLITE_OK; }
#else
#include "third_party/sqlite/src/preprocessed/sqlite3.h"
#endif