util/WStringCompare: wcpcpy() and wcsdup() are available on Android
This commit is contained in:
@@ -108,8 +108,7 @@ gcc_returns_nonnull gcc_nonnull_all
|
|||||||
static inline wchar_t *
|
static inline wchar_t *
|
||||||
UnsafeCopyStringP(wchar_t *dest, const wchar_t *src) noexcept
|
UnsafeCopyStringP(wchar_t *dest, const wchar_t *src) noexcept
|
||||||
{
|
{
|
||||||
#if defined(_WIN32) || defined(__BIONIC__) || defined(__OpenBSD__) || \
|
#if defined(_WIN32) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||||
defined(__NetBSD__)
|
|
||||||
/* emulate wcpcpy() */
|
/* emulate wcpcpy() */
|
||||||
UnsafeCopyString(dest, src);
|
UnsafeCopyString(dest, src);
|
||||||
return dest + StringLength(dest);
|
return dest + StringLength(dest);
|
||||||
@@ -169,8 +168,6 @@ StringIsEqualIgnoreCase(const wchar_t *a, const wchar_t *b,
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __BIONIC__
|
|
||||||
|
|
||||||
gcc_malloc gcc_returns_nonnull gcc_nonnull_all
|
gcc_malloc gcc_returns_nonnull gcc_nonnull_all
|
||||||
static inline wchar_t *
|
static inline wchar_t *
|
||||||
DuplicateString(const wchar_t *p)
|
DuplicateString(const wchar_t *p)
|
||||||
@@ -183,5 +180,3 @@ DuplicateString(const wchar_t *p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Reference in New Issue
Block a user