Skip to content

Commit

Permalink
Declare wcpcpy and wcpncpy only under _GNU_SOURCE
Browse files Browse the repository at this point in the history
(cherry picked from commit dbb0472)
Andreas Schwab committed Dec 13, 2010
1 parent 92111c6 commit 255eab5
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2010-12-10 Andreas Schwab <schwab@redhat.com>

* wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
_GNU_SOURCE.

2010-12-10 Andreas Schwab <schwab@redhat.com>

* wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
2 changes: 0 additions & 2 deletions wcsmbs/wchar.h
Original file line number Diff line number Diff line change
@@ -555,10 +555,8 @@ extern float wcstof_l (__const wchar_t *__restrict __nptr,
extern long double wcstold_l (__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr,
__locale_t __loc) __THROW;
#endif /* GNU */


#ifdef __USE_XOPEN2K8
/* Copy SRC to DEST, returning the address of the terminating L'\0' in
DEST. */
extern wchar_t *wcpcpy (wchar_t *__restrict __dest,

0 comments on commit 255eab5

Please sign in to comment.