mirror of git://sourceware.org/git/glibc.git
Declare wcpcpy and wcpncpy only under _GNU_SOURCE
This commit is contained in:
parent
4f1972374a
commit
dbb0472f05
|
@ -1,5 +1,8 @@
|
||||||
2010-12-10 Andreas Schwab <schwab@redhat.com>
|
2010-12-10 Andreas Schwab <schwab@redhat.com>
|
||||||
|
|
||||||
|
* wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
|
||||||
|
_GNU_SOURCE.
|
||||||
|
|
||||||
* wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
|
* wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
|
||||||
* wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
|
* wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
|
||||||
Remove __restrict.
|
Remove __restrict.
|
||||||
|
|
|
@ -555,10 +555,8 @@ extern float wcstof_l (__const wchar_t *__restrict __nptr,
|
||||||
extern long double wcstold_l (__const wchar_t *__restrict __nptr,
|
extern long double wcstold_l (__const wchar_t *__restrict __nptr,
|
||||||
wchar_t **__restrict __endptr,
|
wchar_t **__restrict __endptr,
|
||||||
__locale_t __loc) __THROW;
|
__locale_t __loc) __THROW;
|
||||||
#endif /* GNU */
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __USE_XOPEN2K8
|
|
||||||
/* Copy SRC to DEST, returning the address of the terminating L'\0' in
|
/* Copy SRC to DEST, returning the address of the terminating L'\0' in
|
||||||
DEST. */
|
DEST. */
|
||||||
extern wchar_t *wcpcpy (wchar_t *__restrict __dest,
|
extern wchar_t *wcpcpy (wchar_t *__restrict __dest,
|
||||||
|
|
Loading…
Reference in New Issue