source: compat/compat.h @ 2cbe7c3

Last change on this file since 2cbe7c3 was 2cbe7c3, checked in by Anders Kaseorg <>, 10 years ago
Protect memrchr prototype by !HAVE_DECL_MEMCHR instead of !HAVE_MEMCHR This fixes viewwin.c:393:7: warning: implicit declaration of function ‘memrchr’ on platforms where PERL_CFLAGS doesn’t contain -D_GNU_SOURCE. !HAVE_MEMRCHR means that memrchr is undefined at link time, so we need to provide our own implementation; but !HAVE_DECL_MEMRCHR means that memrchr is not declared at compile time, so we need to provide our own prototype. Signed-off-by: Anders Kaseorg <>
  • Property mode set to 100644
File size: 148 bytes
1#include "../config.h"
3#include <stddef.h>
6void *memrchr(const void *s, int c, size_t n);
7#endif  /* !HAVE_DECL_MEMRCHR */
Note: See TracBrowser for help on using the repository browser.