Commit 0dfb27b7 authored by Max Kellermann's avatar Max Kellermann

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

parent 735f62be
...@@ -118,7 +118,7 @@ gcc_returns_nonnull gcc_nonnull_all ...@@ -118,7 +118,7 @@ gcc_returns_nonnull gcc_nonnull_all
static inline char * static inline char *
UnsafeCopyStringP(char *dest, const char *src) noexcept UnsafeCopyStringP(char *dest, const char *src) noexcept
{ {
#if defined(_WIN32) || defined(__BIONIC__) #if defined(_WIN32)
/* emulate stpcpy() */ /* emulate stpcpy() */
UnsafeCopyString(dest, src); UnsafeCopyString(dest, src);
return dest + StringLength(dest); return dest + StringLength(dest);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment