From 2c17bdbd255e75f48753a1429589b3a17cde872a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 12 May 2025 18:52:20 +0200 Subject: Bump actions/upload-pages-artifact from v1 to v3 --- include/string.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/string.h') 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) #if __has_builtin(__builtin_memcpy) __diagnose_as_builtin(__builtin_memcpy, 1, 2, 3) #endif +#if __STDC_VERSION__>=199901L _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, const void * _FORTIFY_POS0 __os, size_t __n) +#else +_FORTIFY_FN(memcpy) void *memcpy(void *restrict _FORTIFY_POS0 __od, + const void *restrict _FORTIFY_POS0 __os, size_t __n) +#endif __error_if((__fh_bos(__od, 0) < __n), "'memcpy' called with `n` bigger than the size of `d`.") { #if __has_builtin(__builtin___memcpy_chk) && FORTIFY_USE_NATIVE_CHK -- cgit v1.3