mimalloc: adjust for building inside Git

We want to compile mimalloc's source code as part of Git, rather than
requiring the code to be built as an external library: mimalloc uses a
CMake-based build, which is not necessarily easy to integrate into the
flavors of Git for Windows (which will be the main benefitting port).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Matthias Aßhauer <mha1993@live.de>
This commit is contained in:
Johannes Schindelin 2019-06-24 23:41:27 +02:00
parent c52e65d665
commit a73adbc988
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,6 @@ terms of the MIT license. A copy of the license can be found in the file
#include <stdlib.h> // malloc, abort
#define MI_IN_ALLOC_C
#include "alloc-override.c"
#include "free.c"
#undef MI_IN_ALLOC_C

View File

@ -95,7 +95,8 @@ terms of the MIT license. A copy of the license can be found in the file
// Includes
// ------------------------------------------------------
#include <stddef.h> // size_t
#include "compat/posix.h"
#include <stdbool.h> // bool
#include <stdint.h> // INTPTR_MAX