diff options
author | Chris Robinson <[email protected]> | 2018-11-15 17:53:05 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 17:53:05 -0800 |
commit | 7c933087718bd1b789f2638164bcf2f8698647cb (patch) | |
tree | ff51bb8d94d00f3ef168f63ede2ab85e3224dd47 /Alc/backends | |
parent | dc622b3182694793d0189acf402bda6bafdf589a (diff) |
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.
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/oss.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
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<DevMap> *devlist, int type) #else -#ifndef HAVE_STRNLEN -size_t my_strnlen(const char *str, size_t maxlen) -{ - const char *end = static_cast<const char*>(memchr(str, 0, maxlen)); - if(!end) return maxlen; - return end - str; -} -#define strnlen my_strnlen -#endif - void ALCossListAppend(std::vector<DevMap> *list, const char *handle, size_t hlen, const char *path, size_t plen) { #ifdef ALC_OSS_DEVNODE_TRUC |