diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-11-06 20:29:35 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-11-06 20:29:35 +0000 |
commit | b924d9a8af442bb0c7b2d4c98841482342f5362b (patch) | |
tree | 5863b2fe9c72486f0618225f1625a222a530cd86 | |
parent | 45e9d9fef03897a6595722f952c120ed99ff0f0f (diff) |
Add in aliases provided by the non arch specific implementations
-rw-r--r-- | libc/string/i386/string.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/string/i386/string.c b/libc/string/i386/string.c index bc85b46a1..779087aed 100644 --- a/libc/string/i386/string.c +++ b/libc/string/i386/string.c @@ -25,6 +25,7 @@ #define _STDIO_UTILITY #define _GNU_SOURCE #include <string.h> +#include <locale.h> /* for __LOCALE_C_ONLY */ #ifdef L_strcpy char * strcpy(char * dest, const char * src) @@ -128,6 +129,9 @@ int strcmp(const char *cs, const char *ct) :"1" (cs),"2" (ct)); return __res; } +#ifdef __LOCALE_C_ONLY +weak_alias(strcmp,strcoll); +#endif /* __LOCALE_C_ONLY */ #endif @@ -174,6 +178,7 @@ char * strchr(const char *s, int c) :"=a" (__res), "=&S" (d0) : "1" (s),"0" (c)); return __res; } +weak_alias(strchr,index); #endif @@ -193,6 +198,7 @@ char *strrchr(const char *s, int c) :"=g" (__res), "=&S" (d0), "=&a" (d1) :"0" (0),"1" (s),"2" (c)); return __res; } +weak_alias(strrchr,rindex); #endif |