Commit 91b747ac authored by Fabrizio Gennari's avatar Fabrizio Gennari Committed by Michael Niedermayer

mem: Fix usage of memalign() on DJGPP.

Credits to Khusraw of bttr-software.de forum.
Signed-off-by: 's avatarCarl Eugen Hoyos <cehoyos@ag.or.at>
parent 969e8d35
......@@ -95,7 +95,11 @@ void *av_malloc(size_t size)
#elif HAVE_ALIGNED_MALLOC
ptr = _aligned_malloc(size, ALIGN);
#elif HAVE_MEMALIGN
#ifndef __DJGPP__
ptr = memalign(ALIGN, size);
#else
ptr = memalign(size, ALIGN);
#endif
/* Why 64?
* Indeed, we should align it:
* on 4 for 386
......
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