diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/string.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h index 2e2b29c..be8229d 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -44,8 +44,13 @@ __fh_access(read_only, 2, 3) | |||
| 44 | #if __has_builtin(__builtin_memcpy) | 44 | #if __has_builtin(__builtin_memcpy) |
| 45 | __diagnose_as_builtin(__builtin_memcpy, 1, 2, 3) | 45 | __diagnose_as_builtin(__builtin_memcpy, 1, 2, 3) |
| 46 | #endif | 46 | #endif |
| 47 | #if __STDC_VERSION__>=199901L | ||
| 47 | _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, | 48 | _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, |
| 48 | const void * _FORTIFY_POS0 __os, size_t __n) | 49 | const void * _FORTIFY_POS0 __os, size_t __n) |
| 50 | #else | ||
| 51 | _FORTIFY_FN(memcpy) void *memcpy(void *restrict _FORTIFY_POS0 __od, | ||
| 52 | const void *restrict _FORTIFY_POS0 __os, size_t __n) | ||
| 53 | #endif | ||
| 49 | __error_if((__fh_bos(__od, 0) < __n), "'memcpy' called with `n` bigger than the size of `d`.") | 54 | __error_if((__fh_bos(__od, 0) < __n), "'memcpy' called with `n` bigger than the size of `d`.") |
| 50 | { | 55 | { |
| 51 | #if __has_builtin(__builtin___memcpy_chk) && FORTIFY_USE_NATIVE_CHK | 56 | #if __has_builtin(__builtin___memcpy_chk) && FORTIFY_USE_NATIVE_CHK |
