// Copyright (c) 2013, Facebook, Inc. All rights reserved.
-// This source code is licensed under the BSD-style license found in the
-// LICENSE file in the root directory of this source tree. An additional grant
-// of patent rights can be found in the PATENTS file in the same directory.
+// This source code is licensed under both the GPLv2 (found in the
+// COPYING file in the root directory) and Apache 2.0 License
+// (found in the LICENSE.Apache file in the root directory).
//
#ifndef ROCKSDB_LITE
#include <cstdio>
int main() { fprintf(stderr, "Please install gflags to run tools\n"); }
#else
-#include <gflags/gflags.h>
#include <atomic>
#include <functional>
#include <memory>
#include "monitoring/histogram.h"
#include "port/port.h"
#include "table/block_builder.h"
+#include "util/gflags_compat.h"
#include "util/mutexlock.h"
#include "util/stop_watch.h"
// main
//
int main(int argc, char** argv) {
- GFLAGS::SetUsageMessage(std::string("\nUSAGE:\n") + std::string(argv[0]) +
- " [OPTIONS]...");
- GFLAGS::ParseCommandLineFlags(&argc, &argv, false);
+ GFLAGS_NAMESPACE::SetUsageMessage(std::string("\nUSAGE:\n") +
+ std::string(argv[0]) + " [OPTIONS]...");
+ GFLAGS_NAMESPACE::ParseCommandLineFlags(&argc, &argv, false);
std::ostringstream msg;
msg << "Config" << std::endl