aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alState.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2018-11-19 09:51:29 -0800
committerChris Robinson <chris.kcat@gmail.com>2018-11-19 09:51:29 -0800
commit3ae1c78d1ac07cd22727296488a399c48597fd15 (patch)
tree972c43d160cc7992c0d18fdc930512571853dd6d /OpenAL32/alState.cpp
parentddfed7187fad7c55ebb5eadb67108914ce22a57f (diff)
Use std::isfinite instead of isfinite
Diffstat (limited to 'OpenAL32/alState.cpp')
-rw-r--r--OpenAL32/alState.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenAL32/alState.cpp b/OpenAL32/alState.cpp
index a3c3cc1f..e3e8856f 100644
--- a/OpenAL32/alState.cpp
+++ b/OpenAL32/alState.cpp
@@ -23,6 +23,7 @@
#include "version.h"
#include <stdlib.h>
+#include <cmath>
#include "alMain.h"
#include "alcontext.h"
@@ -643,7 +644,7 @@ AL_API ALvoid AL_APIENTRY alDopplerFactor(ALfloat value)
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- if(!(value >= 0.0f && isfinite(value)))
+ if(!(value >= 0.0f && std::isfinite(value)))
alSetError(context.get(), AL_INVALID_VALUE, "Doppler factor %f out of range", value);
else
{
@@ -670,7 +671,7 @@ AL_API ALvoid AL_APIENTRY alDopplerVelocity(ALfloat value)
context->EventParam);
}
- if(!(value >= 0.0f && isfinite(value)))
+ if(!(value >= 0.0f && std::isfinite(value)))
alSetError(context.get(), AL_INVALID_VALUE, "Doppler velocity %f out of range", value);
else
{
@@ -685,7 +686,7 @@ AL_API ALvoid AL_APIENTRY alSpeedOfSound(ALfloat value)
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- if(!(value > 0.0f && isfinite(value)))
+ if(!(value > 0.0f && std::isfinite(value)))
alSetError(context.get(), AL_INVALID_VALUE, "Speed of sound %f out of range", value);
else
{