Skip to content

Commit

Permalink
pythongh-122584: Import mimalloc headers in a C++ context (python#122587
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mdboom authored Aug 15, 2024
1 parent 3203a74 commit 1dad23e
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 1dad23e

Please sign in to comment.