Skip to content

Commit

Permalink
Fix compiling with mingw toolchain
Browse files Browse the repository at this point in the history
This replaces _MSC_VER macro with _WIN32 because the former one
is defined for Visual Studio platform only.
  • Loading branch information
Biswa96 committed Dec 1, 2023
1 parent 1441dea commit 56dff07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arithmetic_sse_double.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

inline static void* vecalloc(size_t size)
{
#ifdef _MSC_VER
#ifdef _WIN32
void *memblock = _aligned_malloc(size, 16);
#elif defined(__APPLE__)
/* Memory on Mac OS X is already aligned to 16 bytes */
Expand All @@ -59,7 +59,7 @@ inline static void* vecalloc(size_t size)

inline static void vecfree(void *memblock)
{
#ifdef _MSC_VER
#ifdef _WIN32
_aligned_free(memblock);
#else
free(memblock);
Expand Down

0 comments on commit 56dff07

Please sign in to comment.