string: memrchr() definition was lost
authorMarko Kreen <markokr@gmail.com>
Wed, 15 Sep 2010 13:11:52 +0000 (16:11 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 15 Sep 2010 13:11:52 +0000 (16:11 +0300)
usual/string.h

index 3381441ab06c9bff817ec83f7fe36c2b28a6ecec..03e0e50004fdecab3893d7094cd6fe96bf56c3a4 100644 (file)
@@ -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)