提交 7e255127 编写于 作者: L liaogang

Fix gflags 2.1 issue

上级 f09989a1
...@@ -152,6 +152,11 @@ void initMain(int argc, char** argv) { ...@@ -152,6 +152,11 @@ void initMain(int argc, char** argv) {
line += ' '; line += ' ';
} }
LOG(INFO) << "commandline: " << line; LOG(INFO) << "commandline: " << line;
#ifndef GFLAGS_GFLAGS_H_
namespace gflags = google;
#endif
gflags::ParseCommandLineFlags(&argc, &argv, true); gflags::ParseCommandLineFlags(&argc, &argv, true);
CHECK_EQ(argc, 1) << "Unknown commandline argument: " << argv[1]; CHECK_EQ(argc, 1) << "Unknown commandline argument: " << argv[1];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册