Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1264028f authored by Josh Gao's avatar Josh Gao Committed by Automerger Merge Worker
Browse files

Merge "adb: add implementation of mempcpy for deficient platforms." am: d956dd78

Change-Id: I0a75898349052c4d1a99e3ef856893bbfd419c20
parents c336c565 d956dd78
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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