From 834cca34cf05e5dd8d26686a273f8ef2529cb692 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 7 Mar 2015 19:21:39 +0000 Subject: [PATCH] Core: BSD IsNan patch #1007 git-svn-id: svn://ultimatepp.org/upp/trunk@8242 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Core/Defs.h b/uppsrc/Core/Defs.h index 79e858618..d614ef643 100644 --- a/uppsrc/Core/Defs.h +++ b/uppsrc/Core/Defs.h @@ -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