Switch to SGMisc::isNaN

This commit is contained in:
Erik Hofman
2016-10-28 11:18:40 +02:00
parent 51e7d95bf2
commit e3a4144e6c

View File

@@ -50,10 +50,8 @@
#endif
#include <simgear/structure/SGSharedPtr.hxx>
#include <simgear/math/SGMisc.hxx>
#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<float>::isNaN(v[0]) || SGMisc<float>::isNaN(v[1]) || SGMisc<float>::isNaN(v[2]));
}
#endif // _SG_SOUNDMGR_OPENAL_PRIVATE_HXX