Annotation of ports/graphics/simgear/patches/patch-simgear_sound_soundmgr_openal_cxx, Revision 1.1
1.1 ! yason 1: $OpenBSD$
! 2: $NetBSD: patch-ad,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
! 3:
! 4: --- simgear/sound/soundmgr_openal.cxx.orig Sat Nov 17 10:35:45 2007
! 5: +++ simgear/sound/soundmgr_openal.cxx Mon Sep 21 17:07:48 2009
! 6: @@ -37,6 +37,8 @@
! 7: # include <AL/alc.h>
! 8: #endif
! 9:
! 10: +#include <cmath>
! 11: +
! 12: #if defined (__APPLE__)
! 13: # ifdef __GNUC__
! 14: # if ( __GNUC__ >= 3 ) && ( __GNUC_MINOR__ >= 3 )
! 15: @@ -320,7 +322,7 @@ bool SGSoundMgr::stop( const string& refname ) {
! 16:
! 17: // set source position of all managed sounds
! 18: void SGSoundMgr::set_source_pos_all( ALfloat *pos ) {
! 19: - if ( isnan(pos[0]) || isnan(pos[1]) || isnan(pos[2]) ) {
! 20: + if ( std::isnan(pos[0]) || std::isnan(pos[1]) || std::isnan(pos[2]) ) {
! 21: // bail if a bad position is passed in
! 22: return;
! 23: }
! 24: @@ -336,7 +338,7 @@ void SGSoundMgr::set_source_pos_all( ALfloat *pos ) {
! 25:
! 26: // set source velocity of all managed sounds
! 27: void SGSoundMgr::set_source_vel_all( ALfloat *vel ) {
! 28: - if ( isnan(vel[0]) || isnan(vel[1]) || isnan(vel[2]) ) {
! 29: + if ( std::isnan(vel[0]) || std::isnan(vel[1]) || std::isnan(vel[2]) ) {
! 30: // bail if a bad velocity is passed in
! 31: return;
! 32: }
CVSweb