commit | 0dba184ac08e2e84ca782e54c823c64375ed1cb6 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri Apr 03 23:37:05 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Apr 03 23:37:05 2020 +0000 |
tree | ffa58e4335caaee94b0f231ec6e3830eb9f430de | |
parent | d956dd78d0fa1a357abee1365c0f05933683dd08 [diff] | |
parent | 405da5a9a66c2bd7ef0ebfae7b8c792630b6e647 [diff] |
Merge "libsnapshot: Add VTS10 VtsLibsnapshotTest"
diff --git a/adb/sysdeps.h b/adb/sysdeps.h index 9a879b5..7ea30d1 100644 --- a/adb/sysdeps.h +++ b/adb/sysdeps.h
@@ -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