Core: BSD IsNan patch #1007

git-svn-id: svn://ultimatepp.org/upp/trunk@8242 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-03-07 19:21:39 +00:00
parent 59409d57eb
commit 834cca34cf

View file

@ -337,7 +337,7 @@ inline bool IsInf(double d) { return std::isinf(d); }
inline bool IsNaN(double d) { return _isnan(d); }
inline bool IsInf(double d) { return !_finite(d) && !_isnan(d); }
#endif
#elif __APPLE__ || __DragonFly__
#elif __APPLE__ || __DragonFly__ || (PLATFORM_BSD && GCC_VERSION >= 40700)
inline bool IsNaN(double d) { return std::isnan(d); }
inline bool IsInf(double d) { return std::isinf(d); }
#else