From 4ccc2c438e843b34dd6d11a597f86804595cdf4d Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 15 Sep 2010 16:11:52 +0300 Subject: [PATCH] string: memrchr() definition was lost --- usual/string.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usual/string.h b/usual/string.h index 3381441..03e0e50 100644 --- a/usual/string.h +++ b/usual/string.h @@ -105,6 +105,12 @@ static inline int flsll(long long x) { _FLS(ll, long long); } #undef _FLS +#ifndef HAVE_MEMRCHR +#define memrchr(a,b,c) usual_memrchr(a,b,c) +/** Compat: find byte in reverse direction */ +void *memrchr(const void *s, int c, size_t n); +#endif + #ifndef HAVE_BASENAME #undef basename #define basename(a) usual_basename(a) -- 2.39.5