From 2b5522690722cb3b02a4b2aced6e4bd7b2f82dfe Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 26 Jan 2014 00:34:45 +0100 Subject: Build: Move gluegen config files into make/config (cleanup) --- make/config/joal-alc-impl-CustomCCode.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 make/config/joal-alc-impl-CustomCCode.c (limited to 'make/config/joal-alc-impl-CustomCCode.c') diff --git a/make/config/joal-alc-impl-CustomCCode.c b/make/config/joal-alc-impl-CustomCCode.c new file mode 100755 index 0000000..9207210 --- /dev/null +++ b/make/config/joal-alc-impl-CustomCCode.c @@ -0,0 +1,16 @@ +int strlen_alc(ALCdevice *device, int param, const char* str) { + int len = 0; + if ((device == NULL) && (param == ALC_DEVICE_SPECIFIER)) { + while (*str != 0) { + while (*str != 0) { + ++str; + ++len; + } + ++str; + ++len; + } + return len; + } else { + return strlen(str); + } +} -- cgit v1.2.3