blob: 4974282bb5f646cb7bc5dd30b2cb3c5ad984d5e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-ad,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
--- simgear/sound/soundmgr_openal.cxx.orig 2007-07-12 20:01:48.000000000 +0200
+++ simgear/sound/soundmgr_openal.cxx
@@ -37,6 +37,8 @@
# include <AL/alc.h>
#endif
+#include <cmath>
+
#if defined (__APPLE__)
# ifdef __GNUC__
# if ( __GNUC__ >= 3 ) && ( __GNUC_MINOR__ >= 3 )
@@ -310,7 +312,7 @@ bool SGSoundMgr::stop( const string& ref
// set source position of all managed sounds
void SGSoundMgr::set_source_pos_all( ALfloat *pos ) {
- if ( isnan(pos[0]) || isnan(pos[1]) || isnan(pos[2]) ) {
+ if ( std::isnan(pos[0]) || std::isnan(pos[1]) || std::isnan(pos[2]) ) {
// bail if a bad position is passed in
return;
}
@@ -326,7 +328,7 @@ void SGSoundMgr::set_source_pos_all( ALf
// set source velocity of all managed sounds
void SGSoundMgr::set_source_vel_all( ALfloat *vel ) {
- if ( isnan(vel[0]) || isnan(vel[1]) || isnan(vel[2]) ) {
+ if ( std::isnan(vel[0]) || std::isnan(vel[1]) || std::isnan(vel[2]) ) {
// bail if a bad velocity is passed in
return;
}
|