From: Antony Dovgal Date: Tue, 8 Aug 2006 10:53:06 +0000 (+0000) Subject: there is no realiable way to detect memrchr() presence because of a mess in glibc X-Git-Tag: RELEASE_1_0_0RC1~2040 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7010fd0005ba8a71f8d61febd1b13792ee3e6798;p=php there is no realiable way to detect memrchr() presence because of a mess in glibc so let's use our own implementation --- diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 090a8057ed..3afd3c95d5 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -233,16 +233,6 @@ zend_memnstr(char *haystack, char *needle, int needle_len, char *end) return NULL; } -#ifdef HAVE_MEMRCHR -# ifndef __USE_GNU -# define __USE_GNU -# endif - -#include -#define zend_memrchr memrchr - -#else - static inline void *zend_memrchr(const void *s, int c, size_t n) { register unsigned char *e = (unsigned char *)s + n; @@ -255,7 +245,6 @@ static inline void *zend_memrchr(const void *s, int c, size_t n) return NULL; } -#endif BEGIN_EXTERN_C() ZEND_API int increment_function(zval *op1); diff --git a/configure.in b/configure.in index 6444ba6e41..c5270bbedb 100644 --- a/configure.in +++ b/configure.in @@ -489,7 +489,6 @@ lchown \ lrand48 \ memcpy \ memmove \ -memrchr \ mkstemp \ mmap \ nl_langinfo \