aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-16 15:10:36 -0700
committerChris Robinson <[email protected]>2019-09-16 15:10:36 -0700
commit899a414591559633f2641a74325dffc5e54562c7 (patch)
tree5cd3b23181266634ff89fd3bc3ea68862bc0762c /alc/alu.cpp
parent6d93b2ba81958eb277da4361924e89bc7048da41 (diff)
Remove the last uses of the system's str[n]casecmp
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;