summaryrefslogtreecommitdiff
path: root/libc/string/generic/memcmp.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-14 22:57:45 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-14 22:57:45 +0000
commitf8703c6453b64fd74354a0851f6fb05795c31956 (patch)
tree252885111008043b1682496df58e46cbcd93d480 /libc/string/generic/memcmp.c
parent032a3e76d290c776e26ae6c0a68e8b19885a68aa (diff)
Move to use attribute_hidden
Diffstat (limited to 'libc/string/generic/memcmp.c')
-rw-r--r--libc/string/generic/memcmp.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/libc/string/generic/memcmp.c b/libc/string/generic/memcmp.c
index d9c3a7cab..a3fcba036 100644
--- a/libc/string/generic/memcmp.c
+++ b/libc/string/generic/memcmp.c
@@ -275,10 +275,7 @@ memcmp_not_common_alignment (srcp1, srcp2, len)
}
int
-memcmp (s1, s2, len)
- const __ptr_t s1;
- const __ptr_t s2;
- size_t len;
+attribute_hidden __memcmp (const __ptr_t s1, const __ptr_t s2, size_t len)
{
op_t a0;
op_t b0;
@@ -334,7 +331,7 @@ memcmp (s1, s2, len)
return 0;
}
-#ifdef weak_alias
-# undef bcmp
-weak_alias (memcmp, bcmp)
-#endif
+
+strong_alias(__memcmp, memcmp)
+
+weak_alias(memcmp, bcmp)