summaryrefslogtreecommitdiff
path: root/strings/bcmp.c
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-12-17 15:21:43 +0200
committerunknown <monty@hundin.mysql.fi>2001-12-17 15:21:43 +0200
commit4a66de6dd0f7250dedf28e0c4316cc9d6a9c0ed4 (patch)
tree8d5a92c7abb198f443a6dd87136d01fe27640660 /strings/bcmp.c
parent1af1c70d711d1934dad41cec1d5dc55c4fdb4d71 (diff)
downloadmariadb-git-4a66de6dd0f7250dedf28e0c4316cc9d6a9c0ed4.tar.gz
Fix for purify
Diffstat (limited to 'strings/bcmp.c')
-rw-r--r--strings/bcmp.c5
1 files changed, 4 insertions, 1 deletions
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;