Skip to content

Commit

Permalink
Remove code fragment for older abseil versions.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 631336069
  • Loading branch information
tomokinat authored and hiroyuki-komatsu committed May 7, 2024
1 parent 8f1645c commit eb91e31
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/base/vlog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,13 @@
#include <atomic>

#include "absl/base/attributes.h"
#include "absl/flags/flag.h"

// Note that abseil HEAD has ABSL_LTS_RELEASE_VERSION undefined.
#if !defined(ABSL_LTS_RELEASE_VERSION) || ABSL_LTS_RELEASE_VERSION >= 20240116
#include "absl/flags/declare.h"
#include "absl/flags/flag.h"
#include "absl/log/flags.h" // IWYU pragma: keep
#endif // ABSL_LTS_RELEASE_VERSION >= 20240116

#if !defined(ABSL_LTS_RELEASE_VERSION) || ABSL_LTS_RELEASE_VERSION >= 20240116
// Newer version of abseil defines --v flag. We rely on it to avoid symbol
// name collision (though not recommended).
// Abseil defines --v flag. We rely on it to avoid symbol name collision (though
// not recommended).
ABSL_DECLARE_FLAG(int, v);
#else // ABSL_LTS_RELEASE_VERSION >= 20240116
ABSL_FLAG(int, v, 0, "Show all VLOG(m) messages for m <= this.");
#endif // ABSL_LTS_RELEASE_VERSION < 20240116

namespace mozc::internal {

Expand Down

0 comments on commit eb91e31

Please sign in to comment.