util/StringAPI: stpcpy() was added in Bionic API level 21

This commit is contained in:
Max Kellermann 2018-08-20 13:31:23 +02:00
parent 735f62be0c
commit 0dfb27b7e5

View File

@ -118,7 +118,7 @@ gcc_returns_nonnull gcc_nonnull_all
static inline char *
UnsafeCopyStringP(char *dest, const char *src) noexcept
{
#if defined(_WIN32) || defined(__BIONIC__)
#if defined(_WIN32)
/* emulate stpcpy() */
UnsafeCopyString(dest, src);
return dest + StringLength(dest);