diff --git a/include/rocksdb/env.h b/include/rocksdb/env.h index e2efbdc15..709d50366 100644 --- a/include/rocksdb/env.h +++ b/include/rocksdb/env.h @@ -793,7 +793,7 @@ enum InfoLogLevel : unsigned char { // An interface for writing log messages. class Logger { public: - size_t kDoNotSupportGetLogFileSize = std::numeric_limits::max(); + size_t kDoNotSupportGetLogFileSize = (std::numeric_limits::max)(); explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) : log_level_(log_level) {}