Skip to content

Commit

Permalink
Merge pull request #44 from Biswa96/mingw-fix
Browse files Browse the repository at this point in the history
Fix compiling with mingw toolchain
  • Loading branch information
ntamas authored Dec 1, 2023
2 parents 1441dea + 56dff07 commit cc1ef21
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 cc1ef21

Please sign in to comment.