[vlc-commits] posix_memalign is not available on android
Sébastien Toque
git at videolan.org
Sun Sep 25 17:58:28 CEST 2011
vlc | branch: master | Sébastien Toque <xilasz at gmail.com> | Sun Sep 25 11:17:39 2011 +0200| [278a69e81f77c2e6af34a24787bd9307dc207040] | committer: Rafaël Carré
posix_memalign is not available on android
Signed-off-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=278a69e81f77c2e6af34a24787bd9307dc207040
---
include/vlc_common.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 4c8c5e9..a6f3534 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -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)
{
More information about the vlc-commits
mailing list