Skip to content

Commit 381da05

Browse files
committedMay 18, 2024
make mimalloc includes relative to the current file, upstream of python/cpython#113141
1 parent 92a8268 commit 381da05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎include/mimalloc/internal.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ terms of the MIT license. A copy of the license can be found in the file
1414
// functions and macros.
1515
// --------------------------------------------------------------------------
1616

17-
#include "mimalloc/types.h"
18-
#include "mimalloc/track.h"
17+
#include "types.h"
18+
#include "track.h"
1919

2020
#if (MI_DEBUG>0)
2121
#define mi_trace_message(...) _mi_trace_message(__VA_ARGS__)

‎include/mimalloc/types.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ terms of the MIT license. A copy of the license can be found in the file
2323

2424
#include <stddef.h> // ptrdiff_t
2525
#include <stdint.h> // uintptr_t, uint16_t, etc
26-
#include "mimalloc/atomic.h" // _Atomic
26+
#include "atomic.h" // _Atomic
2727

2828
#ifdef _MSC_VER
2929
#pragma warning(disable:4214) // bitfield is not int
@@ -387,7 +387,7 @@ typedef struct mi_memid_s {
387387
// Segments contain mimalloc pages
388388
// ---------------------------------------------------------------
389389

390-
// Segments are large allocated memory blocks (2MiB on 64 bit) from the OS.
390+
// Segments are large allocated memory blocks (2MiB on 64 bit) from the OS.
391391
// Inside segments we allocated fixed size _pages_ that contain blocks.
392392
typedef struct mi_segment_s {
393393
// constant fields

0 commit comments

Comments
 (0)