Avoid missing-prototypes errors in this file
This commit is contained in:
parent
4c9d14b73f
commit
4e2ab71dfe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user