summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-09-06 19:33:50 +0200
committerMax Kellermann <max@musicpd.org>2018-09-06 19:33:50 +0200
commit94b96bde9b66a187c66f6c29285a2f540efc04c9 (patch)
treeaaa3729275c1f282e79136765837946defb42983 /src/util
parent45ffc864c5c1186234a98199ca747e879ec3854a (diff)
util/WStringCompare: wcpcpy() and wcsdup() are available on Android
Diffstat (limited to 'src/util')
-rw-r--r--src/util/WStringAPI.hxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/util/WStringAPI.hxx b/src/util/WStringAPI.hxx
index 0fd70b72a..160e53420 100644
--- a/src/util/WStringAPI.hxx
+++ b/src/util/WStringAPI.hxx
@@ -108,8 +108,7 @@ gcc_returns_nonnull gcc_nonnull_all
static inline wchar_t *
UnsafeCopyStringP(wchar_t *dest, const wchar_t *src) noexcept
{
-#if defined(_WIN32) || defined(__BIONIC__) || defined(__OpenBSD__) || \
- defined(__NetBSD__)
+#if defined(_WIN32) || defined(__OpenBSD__) || defined(__NetBSD__)
/* emulate wcpcpy() */
UnsafeCopyString(dest, src);
return dest + StringLength(dest);
@@ -169,8 +168,6 @@ StringIsEqualIgnoreCase(const wchar_t *a, const wchar_t *b,
#endif
-#ifndef __BIONIC__
-
gcc_malloc gcc_returns_nonnull gcc_nonnull_all
static inline wchar_t *
DuplicateString(const wchar_t *p)
@@ -183,5 +180,3 @@ DuplicateString(const wchar_t *p)
}
#endif
-
-#endif