From 01b14507b728b09b8e092d46f07e94ec735b420c Mon Sep 17 00:00:00 2001 From: "monty@hundin.mysql.fi" <> Date: Mon, 17 Dec 2001 15:21:43 +0200 Subject: [PATCH] Fix for purify --- strings/bcmp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/strings/bcmp.c b/strings/bcmp.c index 7b510258fef..c72a80529a3 100644 --- a/strings/bcmp.c +++ b/strings/bcmp.c @@ -26,7 +26,6 @@ #include "m_string.h" #ifdef HAVE_purify -#undef bcmp #undef HAVE_BCMP #endif @@ -51,7 +50,11 @@ uint len; /* 0 <= len <= 65535 */ #else +#ifndef HAVE_purify int bcmp(register const char *s1,register const char *s2, register uint len) +#else +int my_bcmp(register const char *s1,register const char *s2, register uint len) +#endif { while (len-- != 0 && *s1++ == *s2++) ; return len+1;