Commit 6df2cdbb by Hubert Jarosz

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`.
parent 0967748f
...@@ -48,7 +48,7 @@ namespace { ...@@ -48,7 +48,7 @@ namespace {
bool is_positive_infinity(double x) { bool is_positive_infinity(double x) {
#ifdef _MSC_VER #ifdef _MSC_VER
return _fpclass(x) == _FPCLASS_PINF; return _fpclass(x) == _FPCLASS_PINF;
#elif defined __ANDROID__ #elif defined __ANDROID__ || defined __linux__
return std::isinf(x) && (x >= 0); return std::isinf(x) && (x >= 0);
#else #else
return isinf(x) && (x >= 0); return isinf(x) && (x >= 0);
......
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