From bf69c2b2c98f3a4ea44058d62a8738166037ba17 Mon Sep 17 00:00:00 2001 From: Yujie Qin Date: Mon, 1 Feb 2016 16:19:33 +0100 Subject: Use better conditions to check if posix_memalign() is available. Bug: 26900515 --- source/dng_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dng_memory.cpp b/source/dng_memory.cpp index 8c71dce..fe29110 100644 --- a/source/dng_memory.cpp +++ b/source/dng_memory.cpp @@ -171,7 +171,7 @@ dng_malloc_block::dng_malloc_block (uint32 logicalSize) { -#if qLinux && !defined(__ARM_NEON) && !defined(__mips__) && !defined(NO_POSIX_MEMALIGN) +#if (qLinux && !defined(__ANDROID_API__)) || (defined(__ANDROID_API__) && __ANDROID_API__ >= 17) int err = ::posix_memalign( (void **) &fMalloc, 16, (size_t) PhysicalSize() ); -- cgit v1.2.3