Skip to content

Commit

Permalink
memrchr: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Jul 17, 2016
1 parent cfde608 commit d157ba1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion compat/memrchr.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#endif

#include <string.h>
#include <stddef.h>

/*
* Reverse memchr()
Expand Down
9 changes: 5 additions & 4 deletions include/vlc_fixups.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ typedef struct
#endif

#if !defined (HAVE_POSIX_MEMALIGN) || \
!defined (HAVE_MEMRCHR) || \
!defined (HAVE_STRLCPY) || \
!defined (HAVE_STRNDUP) || \
!defined (HAVE_STRNLEN) || \
Expand Down Expand Up @@ -139,6 +140,10 @@ int vasprintf (char **, const char *, va_list);
int ffsll(unsigned long long);
#endif

#ifndef HAVE_MEMRCHR
void *memrchr(const void *, int, size_t);
#endif

#ifndef HAVE_STRCASECMP
int strcasecmp (const char *, const char *);
#endif
Expand Down Expand Up @@ -268,10 +273,6 @@ int unsetenv (const char *);
int posix_memalign (void **, size_t, size_t);
#endif

#ifndef HAVE_MEMRCHR
void *memrchr(const void *, int, size_t);
#endif

/* locale.h */
#ifndef HAVE_USELOCALE
#define LC_ALL_MASK 0
Expand Down

0 comments on commit d157ba1

Please sign in to comment.