* lib/rawmemchr.c: Restore test of HAVE_RAWMEMCHR.
* modules/relocatable-prog-wrapper (Depends-on): Add stdalign.
+2021-08-21 Bruno Haible <bruno@clisp.org>
+
+ rawmemchr: Fix use in relocatable-prog-wrapper (regression 2021-08-20).
+ * lib/rawmemchr.c: Restore test of HAVE_RAWMEMCHR.
+ * modules/relocatable-prog-wrapper (Depends-on): Add stdalign.
+
2021-08-20 Paul Eggert <eggert@cs.ucla.edu>
rawmemchr: modernize and simplify
/* Specification. */
#include <string.h>
-#include <limits.h>
-#include <stdalign.h>
-#include <stdint.h>
+/* A function definition is only needed if HAVE_RAWMEMCHR is not defined. */
+#if !HAVE_RAWMEMCHR
-#include "verify.h"
+# include <limits.h>
+# include <stdalign.h>
+# include <stdint.h>
+
+# include "verify.h"
/* Find the first occurrence of C in S. */
void *
char_ptr++;
return (void *) char_ptr;
}
+
+#endif
libc-config
pathmax
ssize_t
+stdalign
stdbool
stddef
stdint