Fixes for compiling glslang on Android.
Primarily fix is due to Android not supporting std::to_string().
This commit is contained in:
parent
f99b7dde08
commit
8b64fa5474
5 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue