summaryrefslogtreecommitdiff
path: root/libc/string/strcpy.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-26 01:21:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-26 01:21:10 +0000
commitd8ea341e64250c2f4636c559562e8904037eda74 (patch)
tree5df7693726ec3a9f73e4d622b8312d42e8f31e03 /libc/string/strcpy.c
parent873228f50b0a83833e0f498010ffe3dcc75a9258 (diff)
libc/string: need additional work to remove libc_hidden_proto's properly
Diffstat (limited to 'libc/string/strcpy.c')
-rw-r--r--libc/string/strcpy.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libc/string/strcpy.c b/libc/string/strcpy.c
index cda4094ac..568efbf60 100644
--- a/libc/string/strcpy.c
+++ b/libc/string/strcpy.c
@@ -13,8 +13,6 @@
# define Wstrcpy strcpy
#endif
-libc_hidden_proto(Wstrcpy)
-
Wchar *Wstrcpy(Wchar * __restrict s1, const Wchar * __restrict s2)
{
register Wchar *s = s1;
@@ -29,4 +27,9 @@ Wchar *Wstrcpy(Wchar * __restrict s1, const Wchar * __restrict s2)
return s1;
}
-libc_hidden_def(Wstrcpy)
+
+#ifdef WANT_WIDE
+/* wcscpy does not need libc_hidden_def */
+#else
+libc_hidden_def(strcpy)
+#endif