Merge "adb: add implementation of mempcpy for deficient platforms." into rvc-dev

This commit is contained in:
Josh Gao 2020-04-04 06:45:09 +00:00 committed by Android (Google) Code Review
commit d527ae40dc

View file

@ -42,6 +42,12 @@
#include "sysdeps/network.h"
#include "sysdeps/stat.h"
#if defined(__APPLE__)
static void* mempcpy(void* dst, const void* src, size_t n) {
return static_cast<char*>(memcpy(dst, src, n)) + n;
}
#endif
#ifdef _WIN32
// Clang-only nullability specifiers