fix #171 - error: ‘isinf’ was not declared in this scope

glslang/MachineIndependent/intermOut.cpp used `isinf`,
but it's in `std` namespace, so should use `std::isinf`.
This commit is contained in:
Hubert Jarosz 2016-02-23 01:32:37 +01:00
parent 0967748fbc
commit 6df2cdbb8a

View File

@ -48,7 +48,7 @@ namespace {
bool is_positive_infinity(double x) {
#ifdef _MSC_VER
return _fpclass(x) == _FPCLASS_PINF;
#elif defined __ANDROID__
#elif defined __ANDROID__ || defined __linux__
return std::isinf(x) && (x >= 0);
#else
return isinf(x) && (x >= 0);