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

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

Issue 3519002: Allow building with system-provided sqlite. Last change (tm). (Closed)
Patch Set: fixes Created 10 years, 2 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
« no previous file with comments | « chrome/chrome.gyp ('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 14
15 // A no-op implementation of database preloading (not available 15 // A no-op implementation of database preloading (not available
16 // when using system sqlite). 16 // when using system sqlite).
17 int sqlite3Preload(sqlite3 *db) { return SQLITE_OK; } 17 static int sqlite3Preload(sqlite3 *db) { return SQLITE_OK; }
18 #else 18 #else
19 #include "third_party/sqlite/preprocessed/sqlite3.h" 19 #include "third_party/sqlite/preprocessed/sqlite3.h"
20 #endif 20 #endif
21 21
22 #endif // THIRD_PARTY_SQLITE_SQLITE3_H_ 22 #endif // THIRD_PARTY_SQLITE_SQLITE3_H_
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698