--- a/src/libdstdec/dst_init.c 2025-10-22 01:09:30.000000000 +0200 +++ b/src/libdstdec/dst_init.c 2026-10-16 21:50:33.052994458 +0200 @@ -66,6 +66,7 @@ Changes: #endif #if !defined(NO_SSE2) && (defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__x86_64__)) #include +#define HAVE_MM_MALLOC 1 #endif #include "dst_init.h" #include "ccp_calc.h" @@ -81,7 +82,7 @@ Changes: static void *MemoryAllocate(int NrOfElements, int SizeOfElement) { void *Array; - #ifdef __arm__ /* Check for ARM architecture */ + #ifndef HAVE_MM_MALLOC if ((Array = malloc(NrOfElements * SizeOfElement)) == NULL) { fprintf(stderr,"ERROR: not enough memory available!\n\n"); @@ -97,7 +98,7 @@ static void *MemoryAllocate(int NrOfElem static void MemoryFree(void *Array) { - #ifdef __arm__ /* Check for ARM architecture */ + #ifndef HAVE_MM_MALLOC free(Array); #else _mm_free(Array);