summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-19 20:07:59 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-19 20:07:59 +0000
commita1f0a08481a8577c3ec028cebd5e8a02853b3f5d (patch)
tree0f6547053bd5ba762ac8126ba1b177a455e88ffc /libc
parent10874bd626ddf6a906e69970be3ea90dfc54ecfc (diff)
With the Official Declaration of coff being dead, we can
forget about wrapper functions and just use weak symbols. -Erik
Diffstat (limited to 'libc')
-rw-r--r--libc/string/string.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/libc/string/string.c b/libc/string/string.c
index 366872a9d..0a38b346f 100644
--- a/libc/string/string.c
+++ b/libc/string/string.c
@@ -78,10 +78,7 @@ int strcmp(const char *s1, const char *s2)
#endif
#ifdef L_strcoll
-int strcoll(const char *s1, const char *s2)
-{
- return( strcmp(s1, s2));
-}
+__asm__(".weak strcoll; strcoll = strcmp");
#endif
/********************** Function strncat ************************************/
@@ -167,10 +164,7 @@ char *strchr(const char *str, int c)
#endif
#ifdef L_index
-char *index (const char *s, int c)
-{
- return( strchr(s, c));
-}
+__asm__(".weak index; index = strchr");
#endif
/********************** Function strrchr ************************************/
@@ -195,10 +189,7 @@ char *strrchr(const char *str, int c)
#endif
#ifdef L_rindex
-char *rindex (const char *s, int c)
-{
- return( strrchr(s, c));
-}
+__asm__(".weak rindex; rindex = strrchr");
#endif
/********************** Function strdup ************************************/