Fixes for compiling glslang on Android.

Primarily fix is due to Android not supporting std::to_string().
This commit is contained in:
Andrew Woloszyn 2015-08-17 11:39:38 -04:00
parent f99b7dde08
commit 8b64fa5474
5 changed files with 21 additions and 1 deletions

View file

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