[vlc-commits] memrchr: fix compilation

Rémi Denis-Courmont git at videolan.org
Sun Jul 17 21:40:38 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 17 22:40:28 2016 +0300| [d157ba1f08bd6fe4cca68cabd620310c3c800387] | committer: Rémi Denis-Courmont

memrchr: fix compilation

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d157ba1f08bd6fe4cca68cabd620310c3c800387
---

 compat/memrchr.c     |    1 -
 include/vlc_fixups.h |    9 +++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/compat/memrchr.c b/compat/memrchr.c
index da09e1a..c7a038c 100644
--- a/compat/memrchr.c
+++ b/compat/memrchr.c
@@ -20,7 +20,6 @@
 #endif
 
 #include <string.h>
-#include <stddef.h>
 
 /*
  * Reverse memchr()
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index d62920a..41708e4 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -77,6 +77,7 @@ typedef struct
 #endif
 
 #if !defined (HAVE_POSIX_MEMALIGN) || \
+    !defined (HAVE_MEMRCHR) || \
     !defined (HAVE_STRLCPY) || \
     !defined (HAVE_STRNDUP) || \
     !defined (HAVE_STRNLEN) || \
@@ -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
@@ -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



More information about the vlc-commits mailing list