diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-08-20 13:53:44 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-08-20 16:25:21 -0700 |
commit | c0271151b67be677bfb0a9afcfb780b4d3c48e43 (patch) | |
tree | d67251adf3d9091482ef35bb0caf42e2c1825ce3 | |
parent | 38769bd8c1fcd58ad1aec7ab51c87b4b821689ab (diff) | |
download | glibc-c0271151b67be677bfb0a9afcfb780b4d3c48e43.tar.gz glibc-c0271151b67be677bfb0a9afcfb780b4d3c48e43.tar.xz glibc-c0271151b67be677bfb0a9afcfb780b4d3c48e43.zip |
Add multiarch support to string/strcmp.c
Change function name to STRCMP so that it can be renamed for multiarch. * string/strcmp.c (STRCMP): New. Defined as strcmp if not defined. (strcmp): Rennamed to ... (STRCMP): This.
-rw-r--r-- | string/strcmp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/string/strcmp.c b/string/strcmp.c index 4d4c044660..501cda4f27 100644 --- a/string/strcmp.c +++ b/string/strcmp.c @@ -19,11 +19,15 @@ #undef strcmp +#ifndef STRCMP +#define STRCMP strcmp +#endif + /* Compare S1 and S2, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. */ int -strcmp (const char *p1, const char *p2) +STRCMP (const char *p1, const char *p2) { const unsigned char *s1 = (const unsigned char *) p1; const unsigned char *s2 = (const unsigned char *) p2; |