Skip to content

Commit

Permalink
pythongh-122584: Import mimalloc headers in a C++ context (pythonGH-1…
Browse files Browse the repository at this point in the history
…22587)

(cherry picked from commit 1dad23e)

Co-authored-by: Michael Droettboom <[email protected]>
  • Loading branch information
mdboom authored and miss-islington committed Aug 15, 2024
1 parent 009f9ef commit d1dc32e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Include/internal/pycore_mimalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,18 @@ typedef enum {
# define MI_TSAN 1
#endif

#ifdef __cplusplus
extern "C++" {
#endif

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

#ifdef __cplusplus
}
#endif

#endif

#ifdef Py_GIL_DISABLED
Expand Down

0 comments on commit d1dc32e

Please sign in to comment.