Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/sqlite/sqlite3.h

Issue 6356012: Call sqlite3Preload() only when not using system sqlite. Modify the... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « app/sql/connection.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef THIRD_PARTY_SQLITE_SQLITE3_H_ 5 #ifndef THIRD_PARTY_SQLITE_SQLITE3_H_
6 #define THIRD_PARTY_SQLITE_SQLITE3_H_ 6 #define THIRD_PARTY_SQLITE_SQLITE3_H_
7 #pragma once 7 #pragma once
8 8
9 // This is a shim header to include the right sqlite3 header. 9 // This is a shim header to include the right sqlite3 header.
10 // Use this instead of referencing the sqlite3 header directly. 10 // Use this instead of referencing the sqlite3 header directly.
11 11
12 #if defined(USE_SYSTEM_SQLITE) 12 #if defined(USE_SYSTEM_SQLITE)
13 #include <sqlite3.h> 13 #include <sqlite3.h>
14
15 // A no-op implementation of database preloading (not available
16 // when using system sqlite).
17 static int sqlite3Preload(sqlite3 *db) { return SQLITE_OK; }
18 #else 14 #else
19 #include "third_party/sqlite/preprocessed/sqlite3.h" 15 #include "third_party/sqlite/preprocessed/sqlite3.h"
20 #endif 16 #endif
21 17
22 #endif // THIRD_PARTY_SQLITE_SQLITE3_H_ 18 #endif // THIRD_PARTY_SQLITE_SQLITE3_H_
OLDNEW
« no previous file with comments | « app/sql/connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698