From: Andreas Schwab Date: Fri, 10 Dec 2010 14:16:12 +0000 (-0500) Subject: Declare wcpcpy and wcpncpy only under _GNU_SOURCE X-Git-Tag: glibc-2.12.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=255eab5f5ef8fec5187f4a611a89cc28f0ed7d1b;p=thirdparty%2Fglibc.git Declare wcpcpy and wcpncpy only under _GNU_SOURCE (cherry picked from commit dbb0472f054a4241feec09af30db850dd4d18a7b) --- diff --git a/ChangeLog b/ChangeLog index 18023b9ded0..2122312f4fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-12-10 Andreas Schwab + + * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under + _GNU_SOURCE. + 2010-12-10 Andreas Schwab * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict. diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h index ca8ba8029a5..5f341f39918 100644 --- a/wcsmbs/wchar.h +++ b/wcsmbs/wchar.h @@ -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,