blob: 9fd5355a33cfda5e17a51e127fc23975a033bceb [file] [log] [blame]
// Copyright 2019 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.
// This is a shim that injects Chrome's ICU initialization sequence into
// SQLite's shell. uses this instead of building the sqlite_shell.c
// file in the amalgamation directly.
#include "third_party/sqlite/sqlite_shell_icu_helper.h"
// On Windows, SQLite's shell.c defines wmain() instead of main() by default.
// This preprocessor macro causes it to use main().
// While processing shell.c, rename main() to sqlite_shell_main().
#define main sqlite_shell_main
#include "third_party/sqlite/amalgamation/shell/shell.c"
#undef main
int main(int argc, char** argv) {
return sqlite_shell_main(argc, argv);