* lib/rawmemchr.c: Don't define rawmemchr if not needed.
2021-01-31 Bruno Haible <bruno@clisp.org>
+ Make it possible to compile rawmemchr.c separately, unconditionally.
+ * lib/rawmemchr.c: Don't define rawmemchr if not needed.
+
Make it possible to compile mempcpy.c separately, unconditionally.
* lib/mempcpy.c: Don't define mempcpy if not needed.
/* Specification. */
#include <string.h>
+/* A function definition is only needed if HAVE_RAWMEMCHR is not defined. */
+#if !HAVE_RAWMEMCHR
+
/* Find the first occurrence of C in S. */
void *
rawmemchr (const void *s, int c_in)
char_ptr++;
return (void *) char_ptr;
}
+
+#endif