From 6277ba98d9d1fc8f41f6e32216a9b4cc0a47da34 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 8 Aug 2006 10:54:24 +0000 Subject: [PATCH] there is no realiable way to detect memrchr() presence because of a mess in glibc so let's use our own implementation --- Zend/zend_operators.h | 11 ----------- configure.in | 1 - 2 files changed, 12 deletions(-) diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 8274332417..c7c3991d57 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -169,16 +169,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; @@ -191,7 +181,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 242b25ab2e..f9df413865 100644 --- a/configure.in +++ b/configure.in @@ -491,7 +491,6 @@ lchown \ lrand48 \ memcpy \ memmove \ -memrchr \ mkstemp \ mmap \ nl_langinfo \ -- 2.50.1