| OLD | NEW |
| 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_ |
| OLD | NEW |