[trunk] Import opj_malloc.h from branch 1.5.x

This commit is contained in:
Mathieu Malaterre 2012-10-02 06:51:59 +00:00
parent a46dbe6941
commit 4dba9aed22
1 changed files with 3 additions and 1 deletions

View File

@ -83,8 +83,10 @@ Allocate memory aligned to a 16 byte boundry
#else /* Not _WIN32 */
#if defined(__sun)
#define HAVE_MEMALIGN
#elif defined(__FreeBSD__)
#define HAVE_POSIX_MEMALIGN
/* Linux x86_64 and OSX always align allocations to 16 bytes */
#elif !defined(__amd64__) && !defined(__APPLE__)
#elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)
#define HAVE_MEMALIGN
#include <malloc.h>
#endif