kernel: Don't fail if the private string.h is included under GCC2.

This commit is contained in:
Augustin Cavalier
2026-03-10 13:10:25 -04:00
parent 918b2dfaab
commit 3c28d298f7
+2
View File
@@ -9,10 +9,12 @@
#include_next <string.h>
#if defined(__GNUC__) && __GNUC__ >= 4
#define memset(DEST, V, LEN) __builtin_memset((DEST), (V), (LEN))
#define memcpy(DEST, SRC, LEN) __builtin_memcpy((DEST), (SRC), (LEN))
#define memmove(DEST, SRC, LEN) __builtin_memmove((DEST), (SRC), (LEN))
#define memcmp(B1, B2, LEN) __builtin_memcmp((B1), (B2), (LEN))
#endif
#endif /* KERNEL_STRING_H */