From 65b0dd7a202135e94a16056eadbcd1a94d3d9a5f Mon Sep 17 00:00:00 2001 From: Vardan2009 <70532109+Vardan2009@users.noreply.github.com> Date: Sun, 17 Aug 2025 12:26:26 +0400 Subject: [PATCH] _aligned_free only on Windows --- include/reactphysics3d/memory/DefaultAllocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/reactphysics3d/memory/DefaultAllocator.h b/include/reactphysics3d/memory/DefaultAllocator.h index d4b1b9d2..202f4264 100644 --- a/include/reactphysics3d/memory/DefaultAllocator.h +++ b/include/reactphysics3d/memory/DefaultAllocator.h @@ -77,7 +77,7 @@ class DefaultAllocator : public MemoryAllocator { virtual void release(void* pointer, size_t /*size*/) override { // If compiler is Visual Studio -#ifdef RP3D_COMPILER_VISUAL_STUDIO +#ifdef RP3D_PLATFORM_WINDOWS // Visual Studio doesn't not support standard std:aligned_alloc() method from c++ 17 return _aligned_free(pointer);