Commit 0bc6024a by shinchiro Committed by Commit Bot

Fix mingw compile.

Adjust a compile guard around posix_memalign. Bug: angleproject:2163 Change-Id: I1d2dca24b8a2b8e549df411b1611e9fe0ac9082d Reviewed-on: https://chromium-review.googlesource.com/920748Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 710aa5c7
...@@ -25,7 +25,7 @@ void *AlignedAlloc(size_t size, size_t alignment) ...@@ -25,7 +25,7 @@ void *AlignedAlloc(size_t size, size_t alignment)
ASSERT((alignment & (alignment - 1)) == 0); ASSERT((alignment & (alignment - 1)) == 0);
ASSERT((alignment % sizeof(void *)) == 0); ASSERT((alignment % sizeof(void *)) == 0);
void *ptr = nullptr; void *ptr = nullptr;
#if defined(_MSC_VER) #if defined(ANGLE_PLATFORM_WINDOWS)
ptr = _aligned_malloc(size, alignment); ptr = _aligned_malloc(size, alignment);
// Android technically supports posix_memalign(), but does not expose it in // Android technically supports posix_memalign(), but does not expose it in
// the current version of the library headers used by Chrome. Luckily, // the current version of the library headers used by Chrome. Luckily,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment