diff options
author | Yujie Qin <yujieqin@google.com> | 2016-02-01 16:19:33 +0100 |
---|---|---|
committer | Yujie Qin <yujieqin@google.com> | 2016-02-01 16:19:33 +0100 |
commit | bf69c2b2c98f3a4ea44058d62a8738166037ba17 (patch) | |
tree | 9d869d820c1efeeb311a401140c0bc5b0de0542e | |
parent | f993c498090655d965c28ca56f275bfaa2b05ace (diff) | |
download | dng_sdk-bf69c2b2c98f3a4ea44058d62a8738166037ba17.tar.gz |
Use better conditions to check if posix_memalign() is available.
Bug: 26900515
-rw-r--r-- | source/dng_memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() ); |