util/WStringAPI: wcpcpy(3) is not yet supported on OpenBSD/NetBSD

Signed-off-by: Lazaros Koromilas <lostd@2f30.org>
This commit is contained in:
Lazaros Koromilas 2016-06-12 14:50:59 +02:00 committed by Max Kellermann
parent f59ca94416
commit b2b7974ba0

View File

@ -101,7 +101,8 @@ gcc_nonnull_all
static inline wchar_t *
UnsafeCopyStringP(wchar_t *dest, const wchar_t *src)
{
#if defined(WIN32) || defined(__BIONIC__)
#if defined(WIN32) || defined(__BIONIC__) || defined(__OpenBSD__) || \
defined(__NetBSD__)
/* emulate wcpcpy() */
UnsafeCopyString(dest, src);
return dest + StringLength(dest);