mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Fixed GTX_compatibility on Android r7
This commit is contained in:
parent
ac768ea12b
commit
958bb6f6ca
@ -52,6 +52,9 @@
|
|||||||
#include <cfloat>
|
#include <cfloat>
|
||||||
#elif(GLM_COMPILER & GLM_COMPILER_GCC)
|
#elif(GLM_COMPILER & GLM_COMPILER_GCC)
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
|
||||||
|
# undef isfinite
|
||||||
|
# endif
|
||||||
#endif//GLM_COMPILER
|
#endif//GLM_COMPILER
|
||||||
|
|
||||||
namespace glm
|
namespace glm
|
||||||
|
@ -16,9 +16,16 @@ namespace glm
|
|||||||
{
|
{
|
||||||
# if(GLM_COMPILER & GLM_COMPILER_VC)
|
# if(GLM_COMPILER & GLM_COMPILER_VC)
|
||||||
return _finite(x);
|
return _finite(x);
|
||||||
#else//(GLM_COMPILER & GLM_COMPILER_GCC)
|
# elif(GLM_COMPILER & GLM_COMPILER_GCC)
|
||||||
|
# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
|
||||||
|
return _isfinite(x) != 0;
|
||||||
|
# else
|
||||||
return std::isfinite(x) != 0;
|
return std::isfinite(x) != 0;
|
||||||
# endif
|
# endif
|
||||||
|
# else
|
||||||
|
return std::isfinite(x) != 0;
|
||||||
|
# endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename valType>
|
template <typename valType>
|
||||||
@ -58,6 +65,12 @@ namespace glm
|
|||||||
{
|
{
|
||||||
# if(GLM_COMPILER & GLM_COMPILER_VC)
|
# if(GLM_COMPILER & GLM_COMPILER_VC)
|
||||||
return _fpclass(x) == _FPCLASS_NINF || _fpclass(x) == _FPCLASS_PINF;
|
return _fpclass(x) == _FPCLASS_NINF || _fpclass(x) == _FPCLASS_PINF;
|
||||||
|
# elif(GLM_COMPILER & GLM_COMPILER_GCC)
|
||||||
|
# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
|
||||||
|
return _isinf(x) != 0;
|
||||||
|
# else
|
||||||
|
return std::isinf(x) != 0;
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
return std::isinf(x) != 0;
|
return std::isinf(x) != 0;
|
||||||
# endif
|
# endif
|
||||||
@ -99,6 +112,12 @@ namespace glm
|
|||||||
{
|
{
|
||||||
# if(GLM_COMPILER & GLM_COMPILER_VC)
|
# if(GLM_COMPILER & GLM_COMPILER_VC)
|
||||||
return _isnan(x);
|
return _isnan(x);
|
||||||
|
# elif(GLM_COMPILER & GLM_COMPILER_GCC)
|
||||||
|
# if(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
|
||||||
|
return _isnan(x) != 0;
|
||||||
|
# else
|
||||||
|
return std::isnan(x) != 0;
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
return std::isnan(x) != 0;
|
return std::isnan(x) != 0;
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user