Commit f525db63 authored by Pierre Moreau's avatar Pierre Moreau Committed by Jose Fonseca

nv50/ra: `isinf()` is in namespace `std` since C++11.

This fixes a compile error while building Nouveau with C++11 enabled (and
glibc >= 2.23). This happens if SWR is enabled, as it forces C++11.
Signed-off-by: default avatarPierre Moreau <pierre.morrow@free.fr>
Signed-off-by: default avatarJose Fonseca <jfonseca@vmware.com>

https://bugs.freedesktop.org/show_bug.cgi?id=94907
parent fa46848e
...@@ -1327,7 +1327,11 @@ GCRA::simplify() ...@@ -1327,7 +1327,11 @@ GCRA::simplify()
bestScore = score; bestScore = score;
} }
} }
#if __cplusplus >= 201103L
if (std::isinf(bestScore)) {
#else
if (isinf(bestScore)) { if (isinf(bestScore)) {
#endif
ERROR("no viable spill candidates left\n"); ERROR("no viable spill candidates left\n");
break; break;
} }
......
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