Skip to content

Commit

Permalink
posix_memalign not defined with mingw
Browse files Browse the repository at this point in the history
using the _WIN32 macro catches both on MSVC and mingw
  • Loading branch information
maqifrnswa authored and cynthia committed Apr 12, 2021
1 parent 248bbf6 commit 88fa29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arithmetic_sse_double.h
Expand Up @@ -41,7 +41,7 @@

inline static void* vecalloc(size_t size)
{
#if defined(_MSC_VER)
#if defined(_WIN32)
void *memblock = _aligned_malloc(size, 16);
#elif defined(__APPLE__) /* OS X always aligns on 16-byte boundaries */
void *memblock = malloc(size);
Expand Down

0 comments on commit 88fa29f

Please sign in to comment.