summaryrefslogtreecommitdiffstats
path: root/third_party/sqlite/sqlite3.h
blob: 6c7c3b084353456d2dedfa9964e975bed5f637dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_SQLITE_SQLITE3_H_
#define THIRD_PARTY_SQLITE_SQLITE3_H_
#pragma once

// This is a shim header to include the right sqlite3 header.
// Use this instead of referencing the sqlite3 header directly.

#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

#endif  // THIRD_PARTY_SQLITE_SQLITE3_H_