Skip to content

Commit

Permalink
revise gflags portability namespaces
Browse files Browse the repository at this point in the history
Summary: Let `folly::gflags` be an alias to the true gflags namespace if gflags is available.

Reviewed By: Gownta

Differential Revision: D65899780

fbshipit-source-id: 7e050d5268f484f92b58d179005c4ce79f3cee52
  • Loading branch information
yfeldblum authored and facebook-github-bot committed Nov 25, 2024
1 parent bc562f5 commit 85499c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions proxygen/httpclient/samples/H3Datagram/H3DatagramClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ class DatagramClient
int main(int argc, char* argv[]) {
#if FOLLY_HAVE_LIBGFLAGS
// Enable glog logging to stderr by default.
gflags::SetCommandLineOptionWithMode(
"logtostderr", "1", gflags::SET_FLAGS_DEFAULT);
folly::gflags::SetCommandLineOptionWithMode(
"logtostderr", "1", folly::gflags::SET_FLAGS_DEFAULT);
#endif
folly::init(&argc, &argv, false);

Expand Down
4 changes: 2 additions & 2 deletions proxygen/httpclient/samples/curl/CurlClientMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ DEFINE_bool(log_response,
int main(int argc, char* argv[]) {
#if FOLLY_HAVE_LIBGFLAGS
// Enable glog logging to stderr by default.
gflags::SetCommandLineOptionWithMode(
"logtostderr", "1", gflags::SET_FLAGS_DEFAULT);
folly::gflags::SetCommandLineOptionWithMode(
"logtostderr", "1", folly::gflags::SET_FLAGS_DEFAULT);
#endif
auto _ = folly::Init(&argc, &argv, false);

Expand Down

0 comments on commit 85499c6

Please sign in to comment.