mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 07:30:54 +00:00
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:
parent
23c7d13540
commit
6a9de43477
|
@ -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…
Reference in a new issue