aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 32c52526..b0405822 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -55,6 +55,7 @@
#include "almalloc.h"
#include "alnumeric.h"
#include "alspan.h"
+#include "alstring.h"
#include "ambidefs.h"
#include "atomic.h"
#include "bformatdec.h"
@@ -90,7 +91,8 @@ ALfloat InitConeScale()
ALfloat ret{1.0f};
if(auto optval = al::getenv("__ALSOFT_HALF_ANGLE_CONES"))
{
- if(strcasecmp(optval->c_str(), "true") == 0 || strtol(optval->c_str(), nullptr, 0) == 1)
+ if(al::strcasecmp(optval->c_str(), "true") == 0
+ || strtol(optval->c_str(), nullptr, 0) == 1)
ret *= 0.5f;
}
return ret;
@@ -101,7 +103,8 @@ ALfloat InitZScale()
ALfloat ret{1.0f};
if(auto optval = al::getenv("__ALSOFT_REVERSE_Z"))
{
- if(strcasecmp(optval->c_str(), "true") == 0 || strtol(optval->c_str(), nullptr, 0) == 1)
+ if(al::strcasecmp(optval->c_str(), "true") == 0
+ || strtol(optval->c_str(), nullptr, 0) == 1)
ret *= -1.0f;
}
return ret;