aboutsummaryrefslogtreecommitdiffstats
path: root/make/config/joal-alc-impl-CustomCCode.c
diff options
context:
space:
mode:
Diffstat (limited to 'make/config/joal-alc-impl-CustomCCode.c')
-rw-r--r--make/config/joal-alc-impl-CustomCCode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/make/config/joal-alc-impl-CustomCCode.c b/make/config/joal-alc-impl-CustomCCode.c
index bd4a57a..bb36ff1 100644
--- a/make/config/joal-alc-impl-CustomCCode.c
+++ b/make/config/joal-alc-impl-CustomCCode.c
@@ -1,6 +1,5 @@
-#include <stdbool.h>
-bool alc_is_double_null_terminated_string(ALCdevice *device, int param) {
+static int alc_is_double_null_terminated_string(ALCdevice *device, int param) {
return device == NULL && (
param == ALC_DEVICE_SPECIFIER ||
param == ALC_CAPTURE_DEVICE_SPECIFIER ||
@@ -10,7 +9,7 @@ bool alc_is_double_null_terminated_string(ALCdevice *device, int param) {
int strlen_alc(ALCdevice *device, int param, const char* str) {
int len = 0;
- if (alc_is_double_null_terminated_string(device, param)) {
+ if ( alc_is_double_null_terminated_string(device, param) ) {
while (*str != 0) {
while (*str != 0) {
++str;