From 08e50ec6dda9434e1ea804237d4c1de4f0e26438 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 18 Jan 2015 16:34:42 -0600 Subject: [PATCH] [Android] Remove posix_memalign workaround. Google fixed the issue of posix_memalign not being available. It now works fine in r10d of the NDK. --- Source/Core/Common/MemoryUtil.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/Core/Common/MemoryUtil.cpp b/Source/Core/Common/MemoryUtil.cpp index e36babb03d..14d58aa45f 100644 --- a/Source/Core/Common/MemoryUtil.cpp +++ b/Source/Core/Common/MemoryUtil.cpp @@ -115,12 +115,8 @@ void* AllocateAlignedMemory(size_t size,size_t alignment) void* ptr = _aligned_malloc(size,alignment); #else void* ptr = nullptr; -#ifdef ANDROID - ptr = memalign(alignment, size); -#else if (posix_memalign(&ptr, alignment, size) != 0) ERROR_LOG(MEMMAP, "Failed to allocate aligned memory"); -#endif #endif // printf("Mapped memory at %p (size %ld)\n", ptr,