From Jordi Torres, Android build fix

This commit is contained in:
Robert Osfield 2013-02-12 15:44:52 +00:00
parent 21676c4db0
commit 63cd217c77

View File

@ -111,6 +111,9 @@ inline double round(double v) { return v>=0.0?floor(v+0.5):ceil(v-0.5); }
#if defined(_MSC_VER) #if defined(_MSC_VER)
inline bool isNaN(double v) { return _isnan(v)!=0; } inline bool isNaN(double v) { return _isnan(v)!=0; }
#elif defined(__ANDROID__)
inline bool isNaN(float v) { return isnan(v); }
inline bool isNaN(double v) { return isnan(v); }
#else #else
inline bool isNaN(float v) { return std::isnan(v); } inline bool isNaN(float v) { return std::isnan(v); }
inline bool isNaN(double v) { return std::isnan(v); } inline bool isNaN(double v) { return std::isnan(v); }