Commit 025fd322 authored by Dominik Charousset's avatar Dominik Charousset

Fix build on Linux

parent 08a459df
...@@ -91,7 +91,7 @@ void append(prometheus::char_buffer& buf, double val, Ts&&... xs) { ...@@ -91,7 +91,7 @@ void append(prometheus::char_buffer& buf, double val, Ts&&... xs) {
if (isnan(val)) { if (isnan(val)) {
append(buf, "NaN"_sv); append(buf, "NaN"_sv);
} else if (isinf(val)) { } else if (isinf(val)) {
if (signbit(val)) if (std::signbit(val))
append(buf, "+Inf"_sv); append(buf, "+Inf"_sv);
else else
append(buf, "-Inf"_sv); append(buf, "-Inf"_sv);
......
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