Commit 278a69e8 authored by Sébastien Toque's avatar Sébastien Toque Committed by Rafaël Carré

posix_memalign is not available on android

Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 9a391eb0
......@@ -914,6 +914,9 @@ static void vlc_free(void *ptr)
if (ptr)
free((char*)ptr - ((char*)ptr)[-1]);
}
#elif defined(__ANDROID__)
# define vlc_memalign(align, size) memalign(align, size)
# define vlc_free(base) free(base)
#else
static inline void *vlc_memalign(size_t align, size_t size)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment