Windows.h macro call fix

Summary:
- moved the max call for numeric limits into paranthesis so that max wont be called as macro when including <Windows.h>
Closes https://github.com/facebook/rocksdb/pull/2709

Differential Revision: D5600773

Pulled By: yiwu-arbug

fbshipit-source-id: fd28b6f7c10ddce21bad4030f2db06f965bb08da
main
FireMail 7 years ago committed by Facebook Github Bot
parent 23c7d13540
commit 6a9de43477
  1. 2
      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<size_t>::max();
size_t kDoNotSupportGetLogFileSize = (std::numeric_limits<size_t>::max)();
explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL)
: log_level_(log_level) {}

Loading…
Cancel
Save