From e3a4144e6cb3211ae9d0468f3bbc7056a4bc03ad Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Fri, 28 Oct 2016 11:18:40 +0200 Subject: [PATCH] Switch to SGMisc::isNaN --- simgear/sound/soundmgr_openal_private.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/simgear/sound/soundmgr_openal_private.hxx b/simgear/sound/soundmgr_openal_private.hxx index 276312ea..70ba23af 100644 --- a/simgear/sound/soundmgr_openal_private.hxx +++ b/simgear/sound/soundmgr_openal_private.hxx @@ -50,10 +50,8 @@ #endif #include +#include -#if defined(HAVE_STD_ISNAN) && !defined(HAVE_ISNAN) -using std::isnan; -#endif class SGSampleGroup; struct refUint { @@ -74,7 +72,7 @@ typedef sample_group_map::iterator sample_group_map_iterator; typedef sample_group_map::const_iterator const_sample_group_map_iterator; inline bool isNaN(float *v) { - return (isnan(v[0]) || isnan(v[1]) || isnan(v[2])); + return (SGMisc::isNaN(v[0]) || SGMisc::isNaN(v[1]) || SGMisc::isNaN(v[2])); } #endif // _SG_SOUNDMGR_OPENAL_PRIVATE_HXX