Skip to content

Commit

Permalink
[3.13] gh-122584: Import mimalloc headers in a C++ context (GH-122587) (
Browse files Browse the repository at this point in the history
#123035)

gh-122584: Import mimalloc headers in a C++ context (GH-122587)
(cherry picked from commit 1dad23e)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>
  • Loading branch information
miss-islington and mdboom authored Aug 16, 2024
1 parent cf6d14b commit 7ee7558
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 7ee7558

Please sign in to comment.