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: Pierre Moreau <pierre.morrow@free.fr>
Signed-off-by: Jose Fonseca <jfonseca@vmware.com>

https://bugs.freedesktop.org/show_bug.cgi?id=94907
This commit is contained in:
Pierre Moreau 2016-03-18 01:17:31 +01:00 committed by Jose Fonseca
parent fa46848e51
commit f525db6358
1 changed files with 4 additions and 0 deletions

View File

@ -1327,7 +1327,11 @@ GCRA::simplify()
bestScore = score;
}
}
#if __cplusplus >= 201103L
if (std::isinf(bestScore)) {
#else
if (isinf(bestScore)) {
#endif
ERROR("no viable spill candidates left\n");
break;
}