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
This commit is contained in:
FireMail 2017-08-10 11:33:30 -07:00 committed by Facebook Github Bot
parent 23c7d13540
commit 6a9de43477

View file

@ -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) {}