From 7c933087718bd1b789f2638164bcf2f8698647cb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 15 Nov 2018 17:53:05 -0800 Subject: Remove checks for functions that always exist They're part of C++11 and available on the testing systems. If some system has trouble, switching to proper C++ calls should fix it. --- Alc/backends/oss.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'Alc/backends/oss.cpp') diff --git a/Alc/backends/oss.cpp b/Alc/backends/oss.cpp index 4f320b69..9baa7346 100644 --- a/Alc/backends/oss.cpp +++ b/Alc/backends/oss.cpp @@ -114,16 +114,6 @@ void ALCossListPopulate(std::vector *devlist, int type) #else -#ifndef HAVE_STRNLEN -size_t my_strnlen(const char *str, size_t maxlen) -{ - const char *end = static_cast(memchr(str, 0, maxlen)); - if(!end) return maxlen; - return end - str; -} -#define strnlen my_strnlen -#endif - void ALCossListAppend(std::vector *list, const char *handle, size_t hlen, const char *path, size_t plen) { #ifdef ALC_OSS_DEVNODE_TRUC -- cgit v1.2.3