diff options
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r-- | include/asm-x86_64/string.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-x86_64/string.h b/include/asm-x86_64/string.h index 9505d9f4bead..e583da7918fb 100644 --- a/include/asm-x86_64/string.h +++ b/include/asm-x86_64/string.h | |||
@@ -29,6 +29,9 @@ return (to); | |||
29 | function. */ | 29 | function. */ |
30 | 30 | ||
31 | #define __HAVE_ARCH_MEMCPY 1 | 31 | #define __HAVE_ARCH_MEMCPY 1 |
32 | #if (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __GNUC__ > 4 | ||
33 | extern void *memcpy(void *to, const void *from, size_t len); | ||
34 | #else | ||
32 | extern void *__memcpy(void *to, const void *from, size_t len); | 35 | extern void *__memcpy(void *to, const void *from, size_t len); |
33 | #define memcpy(dst,src,len) \ | 36 | #define memcpy(dst,src,len) \ |
34 | ({ size_t __len = (len); \ | 37 | ({ size_t __len = (len); \ |
@@ -38,7 +41,7 @@ extern void *__memcpy(void *to, const void *from, size_t len); | |||
38 | else \ | 41 | else \ |
39 | __ret = __builtin_memcpy((dst),(src),__len); \ | 42 | __ret = __builtin_memcpy((dst),(src),__len); \ |
40 | __ret; }) | 43 | __ret; }) |
41 | 44 | #endif | |
42 | 45 | ||
43 | #define __HAVE_ARCH_MEMSET | 46 | #define __HAVE_ARCH_MEMSET |
44 | void *memset(void *s, int c, size_t n); | 47 | void *memset(void *s, int c, size_t n); |