summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKinan Hakim <kinan@google.com>2016-01-25 16:20:31 +0100
committerKinan Hakim <kinan@google.com>2016-01-25 16:20:31 +0100
commit671e9caebb6a6d5580ae9bd7676c09501715b6f8 (patch)
treee5d2475516df9d76cbd947b9874c326a873c109e
parentc3041f8cd5dfcdaa2b11e15345da1f37891cf151 (diff)
downloaddng_sdk-671e9caebb6a6d5580ae9bd7676c09501715b6f8.tar.gz
Fix for NO_POSIX_MEMALIGN
-rw-r--r--source/dng_memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/dng_memory.cpp b/source/dng_memory.cpp
index c9554ef..8c71dce 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__)
+#if qLinux && !defined(__ARM_NEON) && !defined(__mips__) && !defined(NO_POSIX_MEMALIGN)
int err = ::posix_memalign( (void **) &fMalloc, 16, (size_t) PhysicalSize() );