aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/memory.cpp')
-rw-r--r--src/zencore/memory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zencore/memory.cpp b/src/zencore/memory.cpp
index 808c9fcb6..ead6dbe6d 100644
--- a/src/zencore/memory.cpp
+++ b/src/zencore/memory.cpp
@@ -26,8 +26,8 @@ AlignedAllocImpl(size_t Size, size_t Alignment)
// platforms return null if this requirement isn't met.
Size = (Size + Alignment - 1) & ~(Alignment - 1);
-#if ZEN_USE_MIMALLOC
- return mi_aligned_alloc(Alignment, Size);
+#if ZEN_USE_MIMALLOC || 1
+ return zen_new_aligned(Size, Alignment);
#elif ZEN_PLATFORM_WINDOWS
return _aligned_malloc(Size, Alignment);
#else
@@ -41,8 +41,8 @@ AlignedFreeImpl(void* ptr)
if (ptr == nullptr)
return;
-#if ZEN_USE_MIMALLOC
- return mi_free(ptr);
+#if ZEN_USE_MIMALLOC || 1
+ return zen_free(ptr);
#elif ZEN_PLATFORM_WINDOWS
_aligned_free(ptr);
#else