Skip to content
Snippets Groups Projects
Commit 4b9d08fd authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Declare memrchr() also when HAVE_MEMRCHR, since glibc by default does not.

Might need a worse #ifdef mess if any non-glibc memrchr() turns up.
parent 8f571ff2
No related branches found
No related tags found
No related merge requests found
......@@ -94,12 +94,12 @@ int (strncasecmp)();
#define memcmp lutil_memcmp
#endif
/* GNU extension (glibc >= 2.1.91), only declared when defined(_GNU_SOURCE) */
#ifndef HAVE_MEMRCHR
/* Actually, I think this is a GNU extension only */
void * lutil_memrchr(const void *b, int c, size_t len);
#undef memrchr
#define memrchr lutil_memrchr
#endif /* ! HAVE_MEMRCHR */
void * memrchr(const void *b, int c, size_t len);
#define STRLENOF(s) (sizeof(s)-1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment