Commit cfb678d6 authored by Max Kellermann's avatar Max Kellermann

config/Parser: work around conflicting macro MAX_INPUT

linux/limits.h defines MAX_INPUT which breaks the build.
parent 4eb101f0
......@@ -41,8 +41,8 @@ template<size_t OPERAND>
static size_t
Multiply(size_t value)
{
static constexpr size_t MAX_INPUT = SIZE_MAX / OPERAND;
if (value > MAX_INPUT)
static constexpr size_t MAX_VALUE = SIZE_MAX / OPERAND;
if (value > MAX_VALUE)
throw std::runtime_error("Value too large");
return value * OPERAND;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment