Avoid missing-prototypes errors in this file

This commit is contained in:
Jeff Epler 2022-02-16 13:13:00 -06:00
parent 4c9d14b73f
commit 4e2ab71dfe

View File

@ -26,6 +26,7 @@
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#ifndef likely
#define likely(x) __builtin_expect((x), 1)
@ -68,6 +69,7 @@ void *memcpy(void *dst, const void *src, size_t n) {
return dst;
}
extern void *__memcpy_chk(void *dest, const void *src, size_t len, size_t slen);
void *__memcpy_chk(void *dest, const void *src, size_t len, size_t slen) {
if (len > slen) {
return NULL;