Windows CE does not provide an aligned_malloc function.

(transplanted from 9b418afff6b55842f0d996eea879eea7289081f9
)
This commit is contained in:
Gael Guennebaud 2012-10-24 10:12:42 +02:00
parent 85c40128e4
commit 26e9563baf

View File

@ -204,7 +204,7 @@ inline void* aligned_malloc(size_t size)
if(posix_memalign(&result, 16, size)) result = 0;
#elif EIGEN_HAS_MM_MALLOC
result = _mm_malloc(size, 16);
#elif (defined _MSC_VER)
#elif defined(_MSC_VER) && (!defined(_WIN32_WCE))
result = _aligned_malloc(size, 16);
#else
result = handmade_aligned_malloc(size);