diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index adc1c1b8c..07334185d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2013-11-26 Corinna Vinschen + + * nlsfuncs.cc (wcscoll): Add "__restrict" to definition. + (wcsxfrm): Ditto. + 2013-11-26 Corinna Vinschen * common.din: Export posix_spawn[...] functions. diff --git a/winsup/cygwin/nlsfuncs.cc b/winsup/cygwin/nlsfuncs.cc index d059498d1..f7031f92e 100644 --- a/winsup/cygwin/nlsfuncs.cc +++ b/winsup/cygwin/nlsfuncs.cc @@ -1150,7 +1150,7 @@ __get_current_collate_codeset (void) transformation. The advantage is that we don't need any files with collation information. */ extern "C" int -wcscoll (const wchar_t *ws1, const wchar_t *ws2) +wcscoll (const wchar_t *__restrict ws1, const wchar_t *__restrict ws2) { int ret; @@ -1204,7 +1204,7 @@ __collate_range_cmp (int c1, int c2) } extern "C" size_t -wcsxfrm (wchar_t *ws1, const wchar_t *ws2, size_t wsn) +wcsxfrm (wchar_t *__restrict ws1, const wchar_t *__restrict ws2, size_t wsn) { size_t ret;