--- embree-4.2.0/common/sys/alloc.cpp.orig	2023-07-04 11:17:39.000000000 +0200
+++ embree-4.2.0/common/sys/alloc.cpp	2023-08-05 10:41:18.866068400 +0200
@@ -12,6 +12,15 @@
   
 namespace embree
 {
+
+#ifdef _WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+
+#define _mm_malloc(size, alignment) _aligned_malloc(size, alignment)
+#define _mm_free(ptr) _aligned_free(ptr)
+#endif
+
   void* alignedMalloc(size_t size, size_t align)
   {
     if (size == 0)
