From 643c2bd84b80b55410c5dfe9761cc3751fd6b9a7 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 5 May 2026 15:51:56 +0000 Subject: [PATCH] fixup! mimalloc: adjust for building inside Git Part of the series that drops the vendored `mimalloc` from this fork; the rationale (no measurable speedup over the platform allocator on any of Windows, macOS, or Linux) is in the second commit of the series and the PR description. The `fixup!` subject is so the next rebase against an upstream Git that already lacks the target commit autosquashes this revert into it, dropping the original cleanly. Signed-off-by: Johannes Schindelin --- compat/mimalloc/alloc.c | 1 + compat/mimalloc/mimalloc.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/mimalloc/alloc.c b/compat/mimalloc/alloc.c index c0ada97c90..cd711e73f5 100644 --- a/compat/mimalloc/alloc.c +++ b/compat/mimalloc/alloc.c @@ -17,6 +17,7 @@ terms of the MIT license. A copy of the license can be found in the file #include // malloc, abort #define MI_IN_ALLOC_C +#include "alloc-override.c" #include "free.c" #undef MI_IN_ALLOC_C diff --git a/compat/mimalloc/mimalloc.h b/compat/mimalloc/mimalloc.h index 6a926d1c80..174d9a34c9 100644 --- a/compat/mimalloc/mimalloc.h +++ b/compat/mimalloc/mimalloc.h @@ -95,8 +95,7 @@ terms of the MIT license. A copy of the license can be found in the file // Includes // ------------------------------------------------------ -#include "compat/posix.h" - +#include // size_t #include // bool #include // INTPTR_MAX