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