mystuff/devel/adb/files/compat-string.h
2026-03-22 00:32:45 +01:00

9 lines
248 B
C

/* OpenBSD compat: add mempcpy (GNU extension) via #include_next wrapper */
#pragma once
#include_next <string.h>
#ifndef mempcpy
static inline void *mempcpy(void *dst, const void *src, size_t n) {
return (char *)memcpy(dst, src, n) + n;
}
#endif