adb: add implementation of mempcpy for deficient platforms.

Bug: http://b/150827486
Test: none
Change-Id: Ic2f4e1c85c9f02e804d849c6cb60b22e15e981d6
(cherry picked from commit 0aafa0f714)
This commit is contained in:
Josh Gao 2020-04-03 10:12:44 -07:00
parent 3db3d6f8d6
commit fbf30e4155

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