]> wimlib.net Git - wimlib/blobdiff - src/util.c
Replace mempcpy() if not implemented
[wimlib] / src / util.c
index 27e15acf3b3c20fcb492e935aaf7d45398021f6e..640f8b32ea1791dfd8db1f233cef4f584d971355 100644 (file)
@@ -576,3 +576,10 @@ void print_byte_field(const u8 field[], size_t len, FILE *out)
        while (len--)
                tfprintf(out, T("%02hhx"), *field++);
 }
+
+#ifndef HAVE_MEMPCPY
+void *mempcpy(void *dst, const void *src, size_t n)
+{
+       return memcpy(dst, src, n) + n;
+}
+#endif