X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmemchr2.c;h=2e3c7cda6211beb920e6ab3af87a5846cd70f502;hb=8f3cd38b6c08109ec9edea0e7712e9a7a920a2d8;hp=b830b9d0b2950f4bdd25e3267dfeaa6b88f40e37;hpb=349d7fe0e307d59d508b3579317ee8d4eacfeb9c;p=gnulib.git
diff --git a/lib/memchr2.c b/lib/memchr2.c
index b830b9d0b..2e3c7cda6 100644
--- a/lib/memchr2.c
+++ b/lib/memchr2.c
@@ -29,18 +29,10 @@ along with this program. If not, see . */
#include
#include
-/* The attribute __pure__ was added in gcc 2.96. */
-#undef _GL_ATTRIBUTE_PURE
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
-# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
-#else
-# define _GL_ATTRIBUTE_PURE /* empty */
-#endif
-
/* Return the first address of either C1 or C2 (treated as unsigned
char) that occurs within N bytes of the memory region S. If
neither byte appears, return NULL. */
-void * _GL_ATTRIBUTE_PURE
+void *
memchr2 (void const *s, int c1_in, int c2_in, size_t n)
{
/* On 32-bit hardware, choosing longword to be a 32-bit unsigned