aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/dedicated.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-19 09:51:29 -0800
committerChris Robinson <[email protected]>2018-11-19 09:51:29 -0800
commit3ae1c78d1ac07cd22727296488a399c48597fd15 (patch)
tree972c43d160cc7992c0d18fdc930512571853dd6d /Alc/effects/dedicated.cpp
parentddfed7187fad7c55ebb5eadb67108914ce22a57f (diff)
Use std::isfinite instead of isfinite
Diffstat (limited to 'Alc/effects/dedicated.cpp')
-rw-r--r--Alc/effects/dedicated.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/effects/dedicated.cpp b/Alc/effects/dedicated.cpp
index 59f31b52..f91458b3 100644
--- a/Alc/effects/dedicated.cpp
+++ b/Alc/effects/dedicated.cpp
@@ -21,6 +21,7 @@
#include "config.h"
#include <stdlib.h>
+#include <cmath>
#include "alMain.h"
#include "alcontext.h"
@@ -142,7 +143,7 @@ void ALdedicated_setParamf(ALeffect *effect, ALCcontext *context, ALenum param,
switch(param)
{
case AL_DEDICATED_GAIN:
- if(!(val >= 0.0f && isfinite(val)))
+ if(!(val >= 0.0f && std::isfinite(val)))
SETERR_RETURN(context, AL_INVALID_VALUE,, "Dedicated gain out of range");
props->Dedicated.Gain = val;
break;