Fixed Android build

This commit is contained in:
Christophe Riccio 2011-10-25 16:29:01 +01:00
commit f2454e61f8
2 changed files with 13 additions and 2 deletions

View File

@ -35,3 +35,14 @@
#ifdef min
#undef min
#endif
//! Workaround for Android
#ifdef isnan
#undef isnan
#endif
//! Workaround for Android
#ifdef isinf
#undef isinf
#endif

View File

@ -801,7 +801,7 @@ namespace detail
#if(GLM_COMPILER & GLM_COMPILER_VC)
return typename genType::bool_type(_isnan(x));
#elif(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
return typename genType::bool_type(isnan(x));
return typename genType::bool_type(::isnanf(x));
#else
return typename genType::bool_type(std::isnan(x));
#endif
@ -854,7 +854,7 @@ namespace detail
#if(GLM_COMPILER & GLM_COMPILER_VC)
return typename genType::bool_type(_fpclass(x) == _FPCLASS_NINF || _fpclass(x) == _FPCLASS_PINF);
#elif(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
return typename genType::bool_type(isinf(x));
return typename genType::bool_type(::__isinf(x));
#else
return typename genType::bool_type(std::isinf(x));
#endif