Skip to content

Commit

Permalink
make mimalloc includes relative to the current file, upstream of pyth…
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed May 18, 2024
1 parent 92a8268 commit 381da05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/mimalloc/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ terms of the MIT license. A copy of the license can be found in the file
// functions and macros.
// --------------------------------------------------------------------------

#include "mimalloc/types.h"
#include "mimalloc/track.h"
#include "types.h"
#include "track.h"

#if (MI_DEBUG>0)
#define mi_trace_message(...) _mi_trace_message(__VA_ARGS__)
Expand Down
4 changes: 2 additions & 2 deletions include/mimalloc/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ terms of the MIT license. A copy of the license can be found in the file

#include <stddef.h> // ptrdiff_t
#include <stdint.h> // uintptr_t, uint16_t, etc
#include "mimalloc/atomic.h" // _Atomic
#include "atomic.h" // _Atomic

#ifdef _MSC_VER
#pragma warning(disable:4214) // bitfield is not int
Expand Down Expand Up @@ -387,7 +387,7 @@ typedef struct mi_memid_s {
// Segments contain mimalloc pages
// ---------------------------------------------------------------

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

0 comments on commit 381da05

Please sign in to comment.