diff options
author | Chris Robinson <[email protected]> | 2018-11-19 09:51:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-19 09:51:29 -0800 |
commit | 3ae1c78d1ac07cd22727296488a399c48597fd15 (patch) | |
tree | 972c43d160cc7992c0d18fdc930512571853dd6d /Alc/effects/dedicated.cpp | |
parent | ddfed7187fad7c55ebb5eadb67108914ce22a57f (diff) |
Use std::isfinite instead of isfinite
Diffstat (limited to 'Alc/effects/dedicated.cpp')
-rw-r--r-- | Alc/effects/dedicated.cpp | 3 |
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; |