[Android] Remove posix_memalign workaround.

Google fixed the issue of posix_memalign not being available. It now works fine in r10d of the NDK.
This commit is contained in:
Ryan Houdek 2015-01-18 16:34:42 -06:00
parent 37a770bb9f
commit 08e50ec6dd
1 changed files with 0 additions and 4 deletions

View File

@ -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,