mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix for purify
This commit is contained in:
@ -26,7 +26,6 @@
|
|||||||
#include "m_string.h"
|
#include "m_string.h"
|
||||||
|
|
||||||
#ifdef HAVE_purify
|
#ifdef HAVE_purify
|
||||||
#undef bcmp
|
|
||||||
#undef HAVE_BCMP
|
#undef HAVE_BCMP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -51,7 +50,11 @@ uint len; /* 0 <= len <= 65535 */
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#ifndef HAVE_purify
|
||||||
int bcmp(register const char *s1,register const char *s2, register uint len)
|
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++) ;
|
while (len-- != 0 && *s1++ == *s2++) ;
|
||||||
return len+1;
|
return len+1;
|
||||||
|
Reference in New Issue
Block a user