]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Declare wcpcpy and wcpncpy only under _GNU_SOURCE
authorAndreas Schwab <schwab@redhat.com>
Fri, 10 Dec 2010 14:16:12 +0000 (09:16 -0500)
committerAndreas Schwab <schwab@redhat.com>
Mon, 13 Dec 2010 10:43:08 +0000 (11:43 +0100)
(cherry picked from commit dbb0472f054a4241feec09af30db850dd4d18a7b)

ChangeLog
wcsmbs/wchar.h

index 18023b9ded08e9e0b54201dd2e236322c8af38e9..2122312f4fe987b8c47f02ae69efcfc98e5529ec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index ca8ba8029a55cccebf016debb5d3fa7ae1b9c64e..5f341f39918cc4c13331e5f409c1ec05e2d0d9a9 100644 (file)
@@ -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,