Skip to content

Commit 7e25512

Browse files
committed
Fix gflags 2.1 issue
1 parent f09989a commit 7e25512

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

paddle/utils/Util.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ void initMain(int argc, char** argv) {
152152
line += ' ';
153153
}
154154
LOG(INFO) << "commandline: " << line;
155+
156+
#ifndef GFLAGS_GFLAGS_H_
157+
namespace gflags = google;
158+
#endif
159+
155160
gflags::ParseCommandLineFlags(&argc, &argv, true);
156161
CHECK_EQ(argc, 1) << "Unknown commandline argument: " << argv[1];
157162

0 commit comments

Comments
 (0)