aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wchar.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-12-10 09:15:01 -0500
committerUlrich Drepper <drepper@gmail.com>2010-12-10 09:15:01 -0500
commit4f1972374a080e823c4ead7c0496827dfc013837 (patch)
tree3ce01c102f39ba54f1af942aa1cc266cbfdd7aab /wcsmbs/wchar.h
parenteaea92f137762dd754fdf858a2cd600f15005884 (diff)
downloadglibc-4f1972374a080e823c4ead7c0496827dfc013837.zip
glibc-4f1972374a080e823c4ead7c0496827dfc013837.tar.gz
glibc-4f1972374a080e823c4ead7c0496827dfc013837.tar.bz2
Fix use of restrict in wchar.h
Diffstat (limited to 'wcsmbs/wchar.h')
-rw-r--r--wcsmbs/wchar.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h
index 061b105..ca8ba80 100644
--- a/wcsmbs/wchar.h
+++ b/wcsmbs/wchar.h
@@ -561,11 +561,13 @@ extern long double wcstold_l (__const wchar_t *__restrict __nptr,
#ifdef __USE_XOPEN2K8
/* Copy SRC to DEST, returning the address of the terminating L'\0' in
DEST. */
-extern wchar_t *wcpcpy (wchar_t *__dest, __const wchar_t *__src) __THROW;
+extern wchar_t *wcpcpy (wchar_t *__restrict __dest,
+ __const wchar_t *__restrict __src) __THROW;
/* Copy no more than N characters of SRC to DEST, returning the address of
the last character written into DEST. */
-extern wchar_t *wcpncpy (wchar_t *__dest, __const wchar_t *__src, size_t __n)
+extern wchar_t *wcpncpy (wchar_t *__restrict __dest,
+ __const wchar_t *__restrict __src, size_t __n)
__THROW;
#endif /* use GNU */