projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d87502
)
string: memrchr() definition was lost
author
Marko Kreen
<markokr@gmail.com>
Wed, 15 Sep 2010 13:11:52 +0000
(16:11 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Wed, 15 Sep 2010 13:11:52 +0000
(16:11 +0300)
usual/string.h
patch
|
blob
|
blame
|
history
diff --git
a/usual/string.h
b/usual/string.h
index 3381441ab06c9bff817ec83f7fe36c2b28a6ecec..03e0e50004fdecab3893d7094cd6fe96bf56c3a4 100644
(file)
--- 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)